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 should be keep precautions while using the recursion method?
Explain the difference between malloc() and calloc() function?
What are global variables and explain how do you declare them?
where can function pointers be used?
List some of the dynamic data structures in C?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How can I return multiple values from a function?
What are the differences between new and malloc in C?
wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }
main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }
1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file
What is the default value of local and global variables in c?