1.

close system call returns ____(a) 0(b) -1(c) 1(d) 0 and -1This question was posed to me in a job interview.Query is from System Calls Basics in chapter System Programming I – Files of Unix

Answer» CORRECT CHOICE is (d) 0 and -1

The best I can explain: The return TYPE of close system CALL is an INTEGER. It either returns 0 if the file is closed successfully or -1 otherwise.


Discussion

No Comment Found

Related InterviewSolutions