What is the role of 'r ' on the file 'NOTES.TXT' in the given below code?#include int main () { FILE *fp; fp = fopen('NOTES.TXT', 'r '); return 0; } - Study24x7
Social learning Network

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
7 followers study24x7 01 Jun 2021 11:47 AM study24x7 study24x7

What is the role of "r+" on the file "NOTES.TXT" in the given below code?

#include<stdio.h> int main () { FILE *fp; fp = fopen("NOTES.TXT", "r+"); return 0; }

A

"r+" open the file "NOTES.TXT" file for reading

B

"r+" open the file "NOTES.TXT" file for writing

C

"r+" open the file "NOTES.TXT" file for appending

D

"r+" open the file "NOTES.TXT" file for reading & writing both

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles