Why does the following code report the number of characters to be 6 even if we enter only 2...
Code:#include<stdio.h> #include<string.h> int main() { FILE *fp; char c; fp=fopen("random","w"); while((c=getchar())!=EOF) putc(c,fp); printf("\nNo. of characters = %ld",ftell(fp)); fclose(fp); }