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


Please Help Members By Posting Answers For Below Questions

What does the && operator do in a program code?

702


What is pre-emptive data structure and explain it with example?

3216


What is scanf () in c?

669


When the macros gets expanded?

792


What is wrong in this statement?

611






In C programming, how do you insert quote characters (‘ and “) into the output screen?

900


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

665


What is a header file?

641


What is the function of multilevel pointer in c?

679


How can variables be characterized?

1654


What is the symbol indicated the c-preprocessor?

700


What is the data segment that is followed by c?

619


Is r written in c?

731


what is a constant pointer in C

684


How to write a multi-statement macro?

629