Which of the following mode is used for opening a file in both reading and writing?

Lan Anh

New member
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
 
Answer: c
Explanation: There are three modes of opening a file namely:
Code:
 O_RDONLY    -    opens files for reading
 O_WRONLY    -    opens file for writing 
 O_RDWR      -   opens file for reading and writing
 

Tìm kiếm

Back
Top