Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
strange size
this is my 4 programme in file handling and i can't undestand why the size of file differ in differ enviroment…
#include<stdio.h> #include<conio.h>
main(int argc,char *argv[]) { FILE *fp; int ch; int num=0;
clrscr();
fp=fopen(argv[1],"r");
while((ch = fgetc(fp)) !=EOF) num++; printf("Number of chars in file %d",num);
}
priya pri samuel
i typed 13 chars the output shows 16 chars ..and wheni goto DOS it shows 19 chars..
can anybody hlp me