- #1
dE_logics
- 742
- 0
After compiling the code below, GCC says that you can't compare a pointer to string by iso C++ standards.
But I don't see a pointer anywhere (I don't know pointers for now...did it long ago, now forgot)...may be it has to do with the fact that arrays are called by reference.
But I don't see a pointer anywhere (I don't know pointers for now...did it long ago, now forgot)...may be it has to do with the fact that arrays are called by reference.
Code:
char convert(unsigned char input[]);
main()
{
unsigned char input[1000];
convert(input);
}
char convert (unsigned char input[])
{
int i;
if(input[0] == " ");
}