MCQs > IT & Programming > C Programming > What will be the content of 'file.c' after executing the following program? #include int main() { FILE *fp1,*fp2; fp1=fopen('file.c','w'); fp2=fopen('file.c','w'); fputc('A',fp1); fputc('B',fp2); fclose(fp1); fclose(fp2); return 0; }

C Programming MCQs

What will be the content of "file.c" after executing the following program? #include<stdio.h> int main() { FILE *fp1,*fp2; fp1=fopen("file.c","w"); fp2=fopen("file.c","w"); fputc('A',fp1); fputc('B',fp2); fclose(fp1); fclose(fp2); return 0; }

 

Answer

Correct Answer: B

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it