Difference between fopen() and open()?
Answers were Sorted based on User's Feedback
Answer / ada
open() is a system call, and fopen() is a stdio library
function.
Is This Answer Correct ? | 29 Yes | 2 No |
Answer / rinal doshi
open() is the function created by the user......... which
can be used to perform a specific task....
fopen() belongs to FILES..... this is a in built user
defined function which is used to open a file which is
already existing with the opening mode or create a new
file....and which returns a pointer
syntax:
file_ptr=fopen("file name","opening mode");
Is This Answer Correct ? | 5 Yes | 7 No |
Answer / vignesh1988i
open() is the function created by the user......... which can be used to perform a specific task....
fopen() belongs to FILES..... this is a in built user defined function which is used to open a file which is already existing with the opening mode or create a new file....and which returns a pointer
syntax:
file_ptr=fopen("file name","opening mode");
Is This Answer Correct ? | 2 Yes | 16 No |
Explain heap and queue.
hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES
what is software?
Explain how can I convert a string to a number?
how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48
What is unary operator?
what is object oriental programing?
what is the hexidecimal number of 4100?
When is an interface "good"?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
Is double link list a linear data structure? If Yes, Why?If No, Why?
What is calloc in c?