1.

____ system call is used for writing to a file.(a) read(b) write(c) close(d) seekThis question was posed to me in an internship interview.My enquiry is from System Calls Basics topic in section System Programming I – Files of Unix

Answer»

Correct option is (B) write

The explanation is: write system call is required for WRITING to a FILE which has previously been opened with the open system call. write system call RETURNS the number of characters written.



Discussion

No Comment Found

Related InterviewSolutions