aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ File Handling
  • Which of the following member functions is used to get a ...
Multiple choice

Which of the following member functions is used to get a single character from a file?

  1. get()

  2. getc()

  3. cin

  4. put()

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

The member function get() is used to get a single character from a file. And put() is used to write a character to a file. 

Keep practicing — related questions

  • Which of the following functions is used in 'C' to write a single character into an output file?
  • Which of the following functions pushes the character read previously using getc() back into input stream p...
  • Which of the following functions are used for a single character input and single character output data?
  • Which of the following function is a macro that outputs a character to a file stream specified using file p...
  • Which one is the valid way to get a character from a keyboard?
  • Which of the following methods is used to extract a single character from a string?
  • Which of the following methods is used to extract a single character from a string?
  • The _____________ I/O stream function is used to return the next character from an input file stream withou...
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