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

In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a

2 Answers   BitWise,


what is Structural oriented language? give some example of this language.....?

1 Answers  


Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?

2 Answers  


how to compare two strings without using strcmp() function??

1 Answers  


The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);

1 Answers   Public Service Commission, HCL,






what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }

14 Answers  


Write a C++ program without using any loop (if, for, while etc) to print numbers from 1 to 100 and 100 to 1;

18 Answers   HCL, TCS, Infosys, Cisco, Accenture, Egentec, Ideaz, M-Systems, MYR,


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

0 Answers   Huawei,


A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.

2 Answers  


which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%

4 Answers  


can we initialize all the members of union?

2 Answers  


how to print "hai" in c?

13 Answers   TCS,






Categories