Input / Output - Programming

Q1:

Which of the following operations can be performed on the file 'NOTES.TXT' using the below code?
FILE *fp;
fp = fopen('NOTES.TXT', 'r+');

A Reading

B Writing

C Appending

D Read and Write

ANS:A - Reading

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