In the given below code, the function fopen()uses 'r' to open the file “source.txt” in binary mode for which purpose?#include int main () { FILE *fp; fp = fopen('source.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:46 AM study24x7 study24x7

In the given below code, the function fopen()uses "r" to open the file “source.txt” in binary mode for which purpose?



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

A

For reading

B

For reading and writing

C

For creating a new file "source.txt" for reading

D

For creating a new file "source.txt" for writing

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