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 |
Explain the array representation of a binary tree in C.
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
c program to print a name without using semicolon
Write a program to find the biggest number of three numbers in c?
How can I remove the trailing spaces from a string?
Why is event driven programming or procedural programming, better within specific scenario?
what is the syallabus of computer science students in group- 1?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
#include<std.h> int main() { char *str[]={"Frogs","Do","Not","Die","They","Croak!"}; printf("%d %d\n",sizeof(str),strlen(str)); ...return 0; } what will the output of the above program?
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; }
What are the preprocessors?
What are the different properties of variable number of arguments?