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 / manoj
Mode Type of file Read Write Create Truncate
"r" text yes no no no
"rb" binary yes no no no
"r+" text yes yes no no
"r+b" binary yes yes no no
"rb+" binary yes yes no no
"w" text no yes yes yes
"wb" binary no yes yes yes
"w+" text yes yes yes yes
"w+b" binary yes yes yes yes
"wb+" binary yes yes yes yes
"a" text no yes yes no
"ab" binary no yes yes no
"a+" text yes yes yes no
"a+b" binary no yes yes no
"ab+" binary no yes yes no
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How is a pointer variable declared?
What is the usage of the pointer in c?
What is a pointer variable in c language?
What will the preprocessor do for a program?
What is a pointer value and address in c?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Explain a file operation in C with an example.
Write a program on swapping (100, 50)
Do you know the purpose of 'register' keyword?
Write a code on reverse string and its complexity.
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is an array? What the different types of arrays in c?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is the most efficient way to store flag values?
Is null always defined as 0(zero)?