my problem is when i compile it in my gcc compiler(gcc count.c -o count)Code://counting no:characters #include <stdio.h> main() { int c; for(c=0;getchar()!=EOF;c++) ; printf("%d",c); }
the program keeps on taking characters as input. thats all. does nothing. havn't even printing any number........i don't understand whats wrong with this