Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Does c have class?

1051


What is the full form of getch?

1182


Explain 'bit masking'?

1025


What is the function of volatile in c language?

1071


Explain how do you print an address?

1087


how can f be used for both float and double arguments in printf? Are not they different types?

1014


Can we use any name in place of argv and argc as command line arguments?

1012


program to convert a integer to string in c language'

2398


Why flag is used in c?

1068


Is linux written in c?

990


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

977


What is the purpose of scanf() and printf() functions?

1173


Are negative numbers true in c?

1001


How is pointer initialized in c?

976


How are strings stored in c?

973