top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In C function fopen() with the mode "r+" tries to open the file for -

0 votes
1,229 views
Areading and writing
Breading and adding new content
Conly for reading
Dit works only for directories

Correct Option: 2  

Explanation:
Both r+ and w+ can read and write to a file. However, r+ doesn't delete the content of the file and doesn't create a new file if such file doesn't exist, whereas w+ deletes the content of the file and creates it if it doesn't exist.
posted Nov 24, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
...