+ 1
[Solved] C Programming
I am reading The C programming language by K&R. And I came across a code which dont work. For me. https://code.sololearn.com/crSwjnjy8uUu/?ref=app
6 Antworten
+ 3
You missed a { and a ;
Like this it seems to work:
#include <stdio.h>
int main()
{
int nc;
nc = 0;
while (getchar() != EOF )
{
++nc;
printf("%1d\n",nc);
}
return 0;
}
0
Yes code is written exactly same manner
0
Thanks..
0
U can simply count no. Of charecter by using length() function from string.h header file