Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. Which of the following operations can be performed on the file "NOTES.TXT" using the below code?

     FILE *fp;
     fp = fopen("NOTES.TXT", "r+"); 
    

  2. A.

    Reading

    B.

    Writing

    C.

    Appending

    D.

    Read and Write

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    r+ Open an existing file for update (reading and writing).


Be The First To Comment