adplus-dvertising
frame-decoration

Question

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

Posted under UNIX

Answer: (c).O_RDWR

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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