can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know???????????
Answer Posted / abdur rab
When a file is opened with update mode ( '+' as the second
or third character in the mode argument), both input and
output may be performed on the associated stream. However,
writes cannot be followed by reads without an intervening
call to fflush or to a file positioning function (fseek,
fsetpos, or rewind), and reads cannot be followed by writes
without an intervening call to a file positioning function.
Since the file position is altered after read or write.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is printf () in c?
Do pointers need to be initialized?
What is define directive?
What does void main () mean?
What is a keyword?
How do you override a defined macro?
What is meant by high-order and low-order bytes?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is derived datatype in c?
Is c# a good language?
How can I change the size of the dynamically allocated array?
What is masking?
What is memory leak in c?
Which is better oop or procedural?
Why are all header files not declared in every c program?