#include<stdio.h>
int main()
{
FILE *fp[2];
if((fp[0]=fp[1]=fopen("test.txt","w"))!=NULL) //test.txt file should be empty during first compiling
{
fputs("one",fp[0]);
fclose(fp[0]);
fputs("two",fp[1]);
fclose(fp[1]);
}
return 0;
}
what will be printed in file “test.txt”. and also am not understanding what is done after “fputs("one",fp[0]);” and “fputs("two",fp[1]);”
can anyone tell me with explanation...please….