Suppose you try to open a file output.txt for writing that already exists and contains data. What happens?
A.
All existing data is erased so, when the program ends, the file contains only new data written by the program.
B.
The open operation fails and the function fopen returns the value NULL.
C.
The program terminates automatically.
D.
The file is renamed as Copy of output.txt and a new, empty file named output.txt is created.
E.
Any new data written to the file by the program is added to the end of the existing file.