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
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
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