File Input Output - Study Mode
[#131] What is the return value of putchar()?
Correct Answer
(D) Both character written & EOF if an error occurs
[#132] In C, which library is used for file operations such as reading and writing files?
Correct Answer
(A) stdio.h
[#133] Which function is used to open a file in C for writing?
Correct Answer
(A) fopen()
[#134] What does 'FILE' represent in C when working with files?
Correct Answer
(D) A file structure
[#135] How do you check if a file was opened successfully in C?
Correct Answer
(B) Check the return value of fopen()