Question 99Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

Which of the following file-type arguments is used in fopen() library function to open a new file for both reading and writing, and destroys the file if a…

Which of the following file-type arguments is used in fopen() library function to open a new file for both reading and writing, and destroys the file if a file with the specified file-name already exists in the current directory?
  1. A"w"
  2. B"w+"
  3. C"a+"
  4. D"r+"
Show answerHide answer

Correct answer: (B) "w+"

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 99 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.