Difference between fopen() and open()?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wild pointer in c with example?

563


What is the size of empty structure in c?

579


Does c have enums?

586


How many levels of pointers can you have?

689


What is the code in while loop that returns the output of given code?

1269






What is function prototype in c language?

599


Write a C program to count the number of email on text

1401


Is fortran still used today?

590


Where is c used?

639


What is structure packing in c?

593


develop algorithms to add polynomials (i) in one variable

1722


What is array of structure in c?

580


What is static identifier?

687


Explain what are the advantages and disadvantages of a heap?

587


What does the format %10.2 mean when included in a printf statement?

1064