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
please write your code like this
int i = 0; char str[50] = {'s', 'a', 'm', 'p','l','e'}; //only for test while (str[i] != "\0") { putchar(str[i]); i++; }