aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Masters of Computer Application (C++)
  • Which function in a stream sets the current get position?
Multiple choice

Which function in a stream sets the current get position?

  1. seekg()

  2. seekp()

  3. get()

  4. tellg()

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

seekg() sets the current get (input) position in an input stream. The companion function seekp() sets the put (output) position for output streams. The 'g' stands for 'get'.

Keep practicing — related questions

  • Which of the following functions moves the get pointer to a specified location?
  • Which of the following functions give the current position of the file pointer?
  • Which of the following functions in data file handling moves the file put pointer to a location specified b...
  • Which of the following functions is used to place the pointer at a particular position in a file?
  • The _____________ I/O stream function is used to return the next character from an input file stream withou...
  • Which of the following functions is not directly related to a file?
  • Which of the following file control functions returns the current position of the file pointer on success a...
  • Which of the following functions pushes the character read previously using getc() back into input stream p...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Languages and Compilers (2284 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy