Sir,
what will be the content of 'file.c' after executing the following program?
int main()
FILE *fp1, *fp2;
fp1=fopen("file.c","w");
fp2=fopen("file.c", "w");
fputc('A', fp1);
fputc('B', fp2);
return 0;
The output of the question is A but I am not able to understand how it is coming.
Thanks,
Anon10364