Difference between fopen() and open()?




Answers were Sorted based on User's Feedback



Difference between fopen() and open()?..

Answer / ada

open() is a system call, and fopen() is a stdio library
function.

Is This Answer Correct ?    29 Yes 2 No

Difference between fopen() and open()?..

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

Difference between fopen() and open()?..

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



Post New Answer



More C Interview Questions

write a program to copy a string without using a string?

2 Answers  


How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.

1 Answers   HCL,


advantages of pointers?

3 Answers  


Whether there can be main inside another main?If so how does it work?

14 Answers   Sail, Wipro,


To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.

4 Answers   Aricent,






can we change the default calling convention in c if yes than how.........?

0 Answers   Aptech,


what is diognisis?

1 Answers  


change to postfix a/(b+c*d-e)

8 Answers   Value Labs,


What is the difference between i++ and i+1 ?(in terms of memory)

3 Answers   HCL,


What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

4 Answers   TCS, Infosys,


two variables are added answer is stored on not for third variable how it is possible?

3 Answers  


how to write a program which adds two numbers without using semicolon in c

2 Answers  






Categories