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 does the && operator do in a program code?
What is pre-emptive data structure and explain it with example?
What is scanf () in c?
When the macros gets expanded?
What is wrong in this statement?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is a header file?
What is the function of multilevel pointer in c?
How can variables be characterized?
What is the symbol indicated the c-preprocessor?
What is the data segment that is followed by c?
Is r written in c?
what is a constant pointer in C
How to write a multi-statement macro?