In C function fopen() with the mode "r+" tries to open the file for - [MCQ]
Answers
"Function fopen() with the mode ""r+"" tries to open the file for reading and writing.
The C library function FILE *fopen(const char *filename, const char *mode) opens the filename pointed to, by filename using the given mode.
Parameters: filename − This is the C string containing the name of the file to be opened and mode - This is the C string containing a file access mode. It has −. "
Answer:
"Function fopen() with the mode ""r+"" tries to open the file for reading and writing.
The C library function FILE *f open(const char *filename, const char *mode) opens the filename pointed to, by filename using the given mode.
Parameters: filename − This is the C string containing the name of the file to be opened and mode - This is the C string containing a file access mode. It has −. "
Explanation: