1.

Consider a file F containing objects E of class Emp.(i) Write statement to position the file pointer to the end of the file.(ii) Write statement to return the number of bytes from the beginning of the file to the current position of the file pointer.

Answer»

(i) F.seekg(0,ios::end);

(ii) F.tellg();



Discussion

No Comment Found

Related InterviewSolutions