barghota
El salamo 3alikom,
Here is a program from Rithchie's book for character counting, when i compile and run it the number of characters isn't displayed...
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
Would someone plz tell me where can i find the output? Thanks
Here is a program from Rithchie's book for character counting, when i compile and run it the number of characters isn't displayed...
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
Would someone plz tell me where can i find the output? Thanks