C Programming - Input / Output - Discussion
Discussion Forum : Input / Output - General Questions (Q.No. 4)
4.
Which of the following operations can be performed on the file "NOTES.TXT" using the below code?
FILE *fp;
fp = fopen("NOTES.TXT", "r+");
Answer: Option
Explanation:
r+ Open an existing file for update (reading and writing).
Discussion:
7 comments Page 1 of 1.
Sush said:
8 years ago
Why can't we use r++?
Charan said:
9 years ago
Correct answer is option D: Read and Write.
Bally said:
9 years ago
What is the correct answer for this question?
Aman said:
10 years ago
Answer is wrong.
r+ is used for reading, opening if not present and appending.
r+ is used for reading, opening if not present and appending.
Varsha said:
1 decade ago
What does appending mean?
Akash said:
1 decade ago
Update means changing the value of variable.
Sneha said:
1 decade ago
What does updating mean?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers