Which function is used to get the position of the file pointer in a file? 

  • getpos() 
  • seekg() 
  • tellg() 
  • seekp()
The "tellg()" function in C++ is used to get the current position of the file pointer in a file when working with input operations. It returns the current position of the reading cursor within the file, which is useful for various file handling tasks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *