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

#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers  


simple program for virtual function?

1 Answers  


what is the diff b/w static and non static variables in C. Give some examples plz.

3 Answers   Wipro,


WAP to convert text into its ASCII Code and also write a function to decode the text given?

2 Answers  


write a reverse string to print a stars.(with out using logic) ***** **** *** ** *

2 Answers  






What does == mean in texting?

0 Answers  


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


what is the self-referential structure?

1 Answers  


What is the best way of making my program efficient?

0 Answers  


a=5 a=a++/++a

14 Answers   Bhel,


Question 1: You want to conduct a survey within your classroom, on the quality of canteen’s food. You ask each of your class fellows to rank the quality of food between 1 and 5 (1 representing excellent quality and 5 representing worst quality). During the survey, you make a list containing the roll# of student and the opinion given by that student. The list can be as follow Roll # Opinion 234 1 235 1 236 5 237 1 238 2 239 3 240 5 241 5 242 1 To get the results of the survey, you need to determine the frequency of each opinion value. The frequency of an opinion is determined by counting the number of students giving that opinion. For example, for the above list the frequency of opinion value 1 is 4 and frequency of opinion value 4 is 0. After getting the frequency of each opinion, you can easily judge about the quality of the food by seeing through the frequency of each opinion. You need to develop a program to calculate the results of this survey. The program inputs the opinion of 50 students and counts the frequency of each opinion. It then displays a report showing the frequency of each opinion. Sample output: Opinion Frequency Remarks 1 5 Excellent 2 10 Good 3 15 Normal 4 10 Bad 5 10 Really bad

1 Answers  


How can this be legal c?

0 Answers  


Categories