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

In fopen(), the mode that appends (a) to a binary (b) file is _____________.

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

The correct option is A ab

In fopen (), the mode that appends (a) to a binary (b) file is ab. "ab" is "append; open or create binary file for writing at end-of-file".

The fopen () function opens the file whose pathname is the string pointed to by filename, and associates a stream with it. Append; open or create file for writing at end-of-file. r + or r b + or r + b. Open file for update (reading and writing).

Append is the name of a procedure for concatenating (linked) lists or arrays in some high-level programming languages.



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