1.

For reading input, which of the following system call is used?(a) write(b) rd(c) read(d) changeI have been asked this question by my college director while I was bunking the class.My question is taken from System Calls Basics in division System Programming I – Files of Unix

Answer»

Correct answer is (c) read

The best explanation: The STANDARD C library offers a set of separate FUNCTIONS to read a block of data. For example, to read a block of data fread is used, for reading a line FGETS is used and for reading a character fgetc is used. All these functions invoke the SYSTEM CALL -read, which is available for reading input.



Discussion

No Comment Found

Related InterviewSolutions