Sail E0 Webinar
Question


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


FILE *fp;
fp = fopen("NOTES.TXT", "r+");
Options:
A .  Reading
B .  Writing
C .  Appending
D .  Read and Write
Answer: Option D

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


Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers