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 |
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }
What is unsigned int in c?
How can I get Single byte from 'int' type variable? Can we alter single bit or multiple bits in int type variable? if so, How?
Place the #include statement must be written in the program?
Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }
Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
program in c to print 1 to 100 without using loop
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Taking an example,differentiate b/w loader and linker ?
WHAT IS INT?
What is pointer & why it is used?