F = fopen( filename, "r" );if(????){fprintf(stderr, "Could not open file!");exit(-1);}What should replace the ???? in the code above to determine if the file could not be opened?A. f == NULLB. f == EOFC. f != 0;D. f == -1

Showing Answers 1 - 4 of 4 Answers

Vijaya Bhaskar M

  • Jul 24th, 2005
 

Normally we will check file with NULL only. so choice A is the correct answer.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions