Examveda

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

C. '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


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output