1.

What is the function of the mode ‘ w+’?(a) create text file for writing, discard previous contents if any(b) create text file for update, discard previous contents if any(c) create text file for writing, do notdiscard previous contents if any(d) create text file for update, do not discard previous contents if anyI had been asked this question in semester exam.I'm obligated to ask this question of File Operations in division Input and Output in C of C

Answer»

Right answer is (B) create text FILE for update, discard previous contents if any

The BEST explanation: w+ is a mode used to OPEN a text file for update (i. E., writing and reading), discard previous contents if any.



Discussion

No Comment Found

Related InterviewSolutions