1.

Which of the following system call uses file descriptor as an argument?(a) read(b) write(c) close(d) read, write, closeI have been asked this question in quiz.Question is from File Handling System Calls in chapter System Programming I – Files of Unix

Answer»

Right answer is (d) read, write, close

The BEST I can explain: A FILE descriptor is an integer which is allocated when a file is opened. It is used by all system calls that PERFORM some operations on file -LIKE read, write, close, lseek.



Discussion

No Comment Found

Related InterviewSolutions