1.

Which function will return the current file position for stream?(a) fgetpos()(b) fseek()(c) ftell()(d) fsetpos()I got this question in a national level competition.The above asked question is from File Operations in chapter Input and Output in C of C

Answer»

The correct option is (c) ftell()

The best explanation: The CURRENT FILE POSITION is returned by ftell() function for stream, or -1L on ERROR.



Discussion

No Comment Found

Related InterviewSolutions