i am clearing my concepts on programming and figured out this concept of eof using getchar()
This program never prints the number of characters inputted in getchar .
please help
where n how it gets eof
and why is it not printing tota number of counts
Code:#include<stdio.h> main(){ int c ,count; while ((c=getchar())!=EOF) count++; printf("%d characters /n",count); }