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 |
Is c still relevant?
What does c mean?
how to write a c program to print list of fruits in alpabetical order?
What is #define size in c?
what is a NULL pointer?
which will return integer? a) int*s ( ) b) ( int* ) s( ) c) int ( *s ) ( )
How the processor registers can be used in C ?
provide an example of the Group by clause, when would you use this clause
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
How do you determine whether to use a stream function or a low-level function?
Are comments included during the compilation stage and placed in the EXE file as well?
What is pass by reference in functions?