Home » C Programming » File I/O » Question
  1. What does the following segment of C code do?
    fprintf(fp, "Interview Mania!");
    1. It writes as well as reads “Interview Mania!” to and from the file and prints it
    2. It writes “Interview Mania!” into the file pointed by fp
    3. It reads “Interview Mania!” from the file and prints on display
    4. All of above
    5. None of these
Correct Option: B

It writes “Interview Mania!” into the file pointed by fp



Your comments will be displayed only after manual approval.