1.

Which of the following offset is used with lseek system call to set the offset pointer to the end of the file?(a) SEEK_SET(b) SEEK_END(c) SEEK_CUR(d) SEEK_CRThe question was asked in a national level competition.The query is from System Calls Basics topic in section System Programming I – Files of Unix

Answer»

Correct CHOICE is (b) SEEK_END

The best I can explain: The offset SIGNIFIES the position of the offset pointer which can TAKE one of these three VALUES:



Discussion

No Comment Found

Related InterviewSolutions