T

Team MCQ Buddy • 20.45K Points
Instructor III

Q. Which function is used to seek the file pointer position in C?

  • (A) seek()
  • (B) fseek()
  • (C) fileseek()
  • (D) fmove()

Explanation by: Team MCQ Buddy
In C programming language, the fseek() function is used to seek the file pointer position.

Syntax:

int fseek(FILE *file_pointer, long int offset, int whence);
Where,

file_pointer− This is the pointer to a FILE object that identifies the stream.
offset − This is the number of bytes to offset from whence.
whence − This is the position from where offset is added, the value of this parameter may SEEK_SET, SEEK_CUR, or SEEK_END.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics