In C, which of the following file opening modes allow both reading and appending data in a
In C, which of the following file opening modes allow both reading and appending data in a
file?
Show answerHide answer
Correct answer: (D) "a+"
Explanation
Mode "a+" opens a file for reading and appending: you can read anywhere, and every write goes to the end. "a" only appends, and "w+" truncates the file first.