How to get the current position of the file pointer?



How to get the current position of the file pointer?..

Answer / Manoj Kumar Gupta

To get the current position of the file pointer in C++, use the 'tellg()' member function on an input stream object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Write about the various sections of the executable image?

1 Answers  


Comment on c++ standard exceptions?

1 Answers  


Can comments be nested?

1 Answers  


What is an incomplete type in c++?

1 Answers  


Define stacks. Provide an example where they are useful.

1 Answers  


What is the difference between a baller and a reference in C++?

1 Answers  


What do you mean by abstraction. Explain your answer?

5 Answers  


What is abstraction in c++?

2 Answers  


What is endianness?

1 Answers  


5. Can inline functions have a recursion?

4 Answers  


Show the declaration for a pointer to function returning long and taking an integer parameter.

1 Answers  


What's the best free c++ profiler for windows?

1 Answers  


Categories