Question 18
Which of the following file modes delete the existing content of a file when opened?
"w"
"w+"
"r+"
"a"
Which of the following file modes delete the existing content of a file when opened?
"w"
"w+"
"r+"
"a"
Correct answers
"w"
"w+"
Question 18 of 23 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 10 May 2026, in the January 2026 term (Programming in C 06 May 26). It carries 3 marks.