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?


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+".

© 2021 Garbage Valuegarbage value logo