InterviewSolution
Saved Bookmarks
| 1. |
Which of the following mode is used for opening a file in both reading and writing?(a) O_RDONLY(b) O_WRONLY(c) O_RDWR(d) O_WDRThis question was addressed to me in an international level competition.Question is from System Calls Basics in chapter System Programming I – Files of Unix |
|
Answer» CORRECT answer is (c) O_RDWR The explanation is: There are THREE modes of opening a FILE namely: |
|