How can we open a file in Binary mode and Text mode?what is
the difference?
Answer / sha
fopen("file1.txt","wb"); will open the file file1.txt in
binary read and write mode. Binary mode is useful to write
a file with 0s and 1s. For example, sometimes it would be
required to open a executable file. In that case, binary
mode is useful.
fopen("file1.txt","w"); will open the file1.txt in text
mode which means you can write regular letters and numbers
in that file.
Is This Answer Correct ? | 2 Yes | 1 No |
what are the advantage and disadvantage of recursion
What is the acronym for ansi?
Is c still used?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
what is the use of using linked list and array?
what is difference between strcmp & palindrome?
Is swift based on c?
Explain what is the advantage of a random access file?
Can you write the algorithm for Queue?
0 Answers College School Exams Tests, TCS,
How do I determine whether a character is numeric, alphabetic, and so on?
When is a void pointer used?
what is the disadvantage of using macros?