0

I run this code :

int main () {
    long numberofchar; 
    numberofchar = 0;
    while (getchar() != EOF)
       ++numberofchar;
    printf("Number of characters : %ld\n",numberofchar);

}

Result : I can type some characters on the console , but It doesn't count the character at all and neither does it print the number of characters on the screen.

Lion Gordon
  • 87
  • 1
  • 6

0 Answers0