A

Admin • 833K Points
Coach

Q. What is the value of EOF in C?

  • (A) -1
  • (B) 0
  • (C) 1
  • (D) NULL
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

The EOF stands for End of File which is a Macro defined in stdio.h header file. With the GNU C Library, EOF is -1. In other libraries, its value may be some other negative number.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.