1.

Which function is used in C++ to get the current position of file pointer in a file?(a) tell_p()(b) get_pos()(c) get_p()(d) tell_pos()I had been asked this question in an interview.This intriguing question comes from File Handling in portion Strings, Streams & Numerics in C++ of C++

Answer»

Right option is (a) tell_p()

Explanation: C++ PROVIDES tell_p() function to get the CURRENT position of the FILE POINTER in a file.



Discussion

No Comment Found

Related InterviewSolutions