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


Please Help Members By Posting Answers For Below Questions

What is double pointer?

650


How does sizeof know array size?

734


What are the 5 types of organizational structures?

659


Explain what is the difference between far and near ?

743


How can I automatically locate a programs configuration files in the same directory as the executable?

722






What is the scope of global variable in c?

643


What do you mean by recursion in c?

724


Difference between malloc() and calloc() function?

753


What is LINKED LIST? How can you access the last element in a linked list?

713


Is main an identifier in c?

701


What is the use of getchar() function?

735


How can this be legal c?

738


What is the time and space complexities of merge sort and when is it preferred over quick sort?

773


What is the difference between test design and test case design?

1669


What are directives in c?

633