I don`t see why... the 0 is in quotes, isn`t it? The program is checking a character, not integer
Type: Posts; User: Dakshin
I don`t see why... the 0 is in quotes, isn`t it? The program is checking a character, not integer
Or you could just replace the EOF with
while ((c = getchar()) != '0')
and the program should stop with the loop.