Multiple choice

Which of the following file modes in 'C' is used to open a file in both read and write mode as well as to delete the previous data stored in the file?

  1. 'w'

  2. 'r'

  3. 'w+'

  4. 'a'

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This file mode in 'C' is used to open a file in both read and write mode as well as to delete the previous data stored in the file.