aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ File Handling
  • Which of the following functions give the current positio...
Multiple choice

Which of the following functions give the current position of the file pointer?

  1. tellme() and giveme()

  2. tellp() and tellg()

  3. put() and get()

  4. seekp() and seekg()

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

The current position of the file pointer is given by the tellp() and tellg() member functions of ostream and istream respectively. 

Keep practicing — related questions

  • Which of the following functions is used to obtain the current position of the file pointer?
  • Which of the following functions is used to place the pointer at a particular position in a file?
  • Which of the following functions in data file handling moves the file put pointer to a location specified b...
  • Which of the following methods in Random Access Files return the current location of the file pointer?
  • Which of the following functions accepts file pointer as a parameter and resets the position of the file po...
  • Which of the following functions moves the get pointer to a specified location?
  • Which of the following file control functions returns the current position of the file pointer on success a...
  • Which function in a stream sets the current get position?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Computer File Systems (1249 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy