← Quiz: Files and Preprocessor: all 10 questions
Quiz: Files and Preprocessor · Question 1 of 10
What does fopen return if the file can't be opened?
What does fopen return if the file can't be opened?
- A.0
- B.-1
- C.NULL
- D.An empty file
Answer & explanation
Correct answer: NULL
Always compare the result with NULL before using it.
Can you get the rest right without peeking?
Take the timed Quiz: Files and Preprocessor quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →