#include<stdio.h>
#include<conio.h>
main()
{
int nc;
for (nc = 0; getchar() != EOF; ++nc)
;
printf("%d\n", nc);
getch();
}
i m not getting any output.
due to this for loop , nc is getting incremented..nd that is what to be done. and i dont want printf statement to come under for loop