I have a bit stupid question about program in C. My compiler says me:
warning: comparison between pointer and integer. I really don\'t know why.
I only want to writ
Here str[i] is a character an NULL is a pointer, so we can not compare it logically.
Use '\0' to compare with str[i] as it is defined to be a null character, so comparing
a character str[i] with a null character '\0' is a right method and will not through
any warning.