Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    +1 not what OP asked but this is probably what the assignment expect you to do, since he can't use pointers. Commented Apr 13, 2013 at 22:54
  • Even printf uses pointers. A pointer is like a knife -- essential for living and working, but you have to hold it by the handle and use the sharp side to cut with or you are gonna have a bad time. The unfortunate placing of spaces in the function definition is a brain bug for many a new C programmer. char * func( char * s); char func( char *s); char func * char* s); are all the same but all look different, and to compound confusion, * is also the de-reference operator for variables that are pointers. Commented Mar 19, 2016 at 8:09