hello, i want to learn c, i reviewed the book of Brian W. and i have a questions in the next code:
the problem is when i introduce a character, for example blank space and then continue loop. it doesn´t break. why ?Code:#include <stdio.h> int main(void ){ int c; long n; n=0; for(n=0;(c=getchar())!= EOF;n++ ) ; printf("fin %ld",n); return 0; }
sorry for my enlgish.