wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In fopen (). the mode, that opens a binary file for reading is

A
r
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
B
r +
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
C
rb
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
r + b
No worries! Weā€˜ve got your back. Try BYJUā€˜S free classes today!
Open in App
Solution

The correct option is D rb

In fopen (). The mode, that opens a binary file for reading is rb.

The fopen () function opens the file that is specified by filename. The mode parameter is a character string specifying the type of access that is requested for the file. The mode variable contains one positional parameter followed by optional keyword parameters.




906677_917418_ans_ed5261a2bb834982ab432db181f21a6a.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Mode
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon