Question discussion

In C, which of the following file opening modes allow both reading and appending data in a file?

359045Medium DSSSB TGT Computer Science 0 replies 0 views
0
In C, which of the following file opening modes allow both reading and appending data in a file?
  • A"w+"
  • B"a"
  • C"r"
  • D"a+"
Correct answer: D

Explanation

The mode "a+" opens the file for both reading and appending.

Discussion 0

Nobody has replied yet. Start the discussion!