aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C programming
  • With which of the following formatted functions is the EO...
Multiple choice

With which of the following formatted functions is the EOF() end of file function used?

  1. gets()

  2. getchar()

  3. printf()

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The EOF() returns -1 as a result if the getchar() function does not return any character.

Keep practicing — related questions

  • Which of the following formatted input functions is used to read strings in 'C'?
  • _________________ function is used to check the end of file condition.
  • Code: FILE *f = fopen( fileName, "r" ); readData( f ); if( ???? ) { puts( "End of file was reached" ); } Wh...
  • Which of the following Standard C functions can be used to reset end-of-file and error conditions on an ope...
  • Which of the following functions is used in 'C' to write a single character into an output file?
  • FILE *f = fopen( fileName, "r" ); readData( f ); if( ???? ) { puts( "End of file was reached" ); } Which on...
  • Which of the following member functions is used to get a single character from a file?
  • Which of the following functions are used for a single character input and single character output data?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy