Q. What is the value of EOF in C?

  • (A) -1
  • (B) 0
  • (C) 1
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (A) -1
Explanation: 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.
Explanation by: Team MCQ Buddy
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
216
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
99%
Success Rate