1.

Which of the following is not used to seek file pointer?(a) ios::set(b) ios::end(c) ios::cur(d) ios::begThis question was posed to me in class test.My enquiry is from File Handling in division Strings, Streams & Numerics in C++ of C++

Answer»

Correct choice is (a) ios::SET

For explanation: ios::set is not used to seek FILE pointer. ios::end is used to seek from the end of the file. ios::curr from the CURRENT POSITION. ios::BEG from the beginning.



Discussion

No Comment Found

Related InterviewSolutions