Difference between fopen() and open()?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain continue keyword in c

775


How can you find the exact size of a data type in c?

776


how to make a scientific calculater ?

1799


Why can arithmetic operations not be performed on void pointers?

815


What is the advantage of using #define to declare a constant?

847


Why use int main instead of void main?

854


Is javascript written in c?

787


What is the maximum no. of arguments that can be given in a command line in C.?

893


Explain the difference between malloc() and calloc() function?

806


write a program to copy the string using switch case?

2616


Is using exit() the same as using return?

927


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5776


What is the use of function in c?

921


State the difference between realloc and free.

829


What is the purpose of sprintf() function?

813