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
NULL should only be used in pointer contexts, but here you're comparing it to a character.
You'd normally want something like:
while (str[i] != '\0') {
[or, of course, something like puts(str); or printf("%s", str);]
puts(str);
printf("%s", str);