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_WDR
This question was addressed to me in an international level competition.
Question is from System Calls Basics in chapter System Programming I – Files of Unix