What is the difference between 'r' and 'w' modes when opening a file in C?
A. 'r' is for read-only and 'w' is for write-only
B. 'r' is for reading and 'w' is for reading and writing
C. 'r' is for read-only and 'w' is for write-only, creating a new file
D. 'r' is for reading and 'w' is for writing, overwriting an existing file
Answer: Option D

Join The Discussion