I am fairly new to C programming (and computer programming)
I am typing examples from "The C Programming Language" book but after i compile in Visual studio and run the programs, i dont get the results that the author explains . To be more specific, i run small word and character count programs like..
main()
{
long nc;
nc=0;
while (getchar() != EOF)
--nc;
printf("%ld\n", nc);
}
and after typing a few words and pressing ENTER nothing
happens except that i goto a new line. is this normal, or should
i get a character count ?