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 IS MEANT BY LIFE?
Is exit(status) truly equivalent to returning the same status from main?
what is the self-referential structure?
Why array is used in c?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
In a header file whether functions are declared or defined?
What is the use of volatile?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is the difference between text and binary modes?
What are types of preprocessor in c?
What are the types of data structures in c?
What does sizeof return c?