why a character array isn't being recognized as a pointer already.
The reason is that you have hidden the global char array named "input" with the local parameter with the same name. In such cases the compiler ignores the global variable.
To correct the problem delete the global array and make it local to main(), then on line 10 make the parameter an array.
Ancient Dragon
Achieved Level 70
32,116 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69