1.

____ system call is used for positioning the offset pointer.(a) read(b) write(c) open(d) lseekThis question was posed to me by my college director while I was bunking the class.This is a very interesting question from System Calls Basics topic in portion System Programming I – Files of Unix

Answer»

Right answer is (d) lseek

The explanation is: The lseek system call MOVES the file OFFSET POINTER to a specified point. It doesn’t do any physical I/O rather it determines the position in the file where the next I/O OPERATION will TAKE place.



Discussion

No Comment Found

Related InterviewSolutions