Question 9 Which of the following statements about C file I/O are true? Opening
ID: 3714363 • Letter: Q
Question
Question 9 Which of the following statements about C file I/O are true? Opening a file with a mode of "w causes any existing data in the file to be erased W The results from the feof function is only valid after a read has been made B fputs automatically adds a to the end of its output @ Reading a binary file in text mode on Windows may result in early detection of end-of-file The fgets function is inherently unsafe and should be avoided D Storing the result of feetc in a char variable may make end-of-file detection unreliableExplanation / Answer
Option: 1 Opening a file in 'w' write mode overwrites existing file.
Option: 2 feof return non zero if it is at the end of file and this thing happens once file read has been made.
Option: 4
Option: 6 result returned by fgetc should be stored in int.
above option are true.