Q14
What is the difference between 'r+' and 'w+' modes when opening a file in C?
A.
'r+' is for reading and writing, 'w+' is for reading only
B.
'r+' is for reading and writing, 'w+' is for writing only, creating a new file
AnswerC.
'r+' is for reading and writing, 'w+' is for writing only, overwriting an existing file
D.
'r+' is for reading only, 'w+' is for reading and writing, creating a new file
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board