1.

open system call returns the file descriptor as ___(a) int(b) float(c) char(d) doubleI have been asked this question in a national level competition.I need to ask this question from System Calls Basics topic in chapter System Programming I – Files of Unix

Answer»

The correct answer is (c) char

Explanation: OPEN returns the FILE descriptor as an INT. This is the lowest number available for allocation and is used as an ARGUMENT by the other four calls (read, WRITE, close, lseek).



Discussion

No Comment Found

Related InterviewSolutions