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
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