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

What are identifiers in c?

0 Answers  


How do you declare a variable that will hold string values?

0 Answers  


What is pointers in c with example?

0 Answers  


What is cohesion and coupling in c?

0 Answers  


Software Interview Questions

1 Answers   CAT,


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

0 Answers  


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


Can an array be an Ivalue?

0 Answers   EXL,


Can you add pointers together? Why would you?

0 Answers  


There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?

1 Answers  


Categories