Chapter - 13: File Input-Output

A floating-point array contains percentage of marks obtained by students in an examination. To store these marks in a file ‘marks.c’, in which mode would you open the file and why?


B
Sections
9
Exercises

A

B

C

1

2

3

4

5

6

7

8

9

If we have to store something in a file, so we should open this file in write mode. And opening the file in binary mode saves lots of space and works faster, so I will choose the mode "wb+".


© 2020 Garbage Valuegarbage value logo