Which of these statements are false w.r.t File Functions?
i)fputs() ii)fdopen() iii)fgetpos() iv)ferror()
A)ii B)i,ii C)iii D)iv
Answers were Sorted based on User's Feedback
Answer / garima
fputs->a function which puts the text in the stream
fdopen->a function to associate the stream with the file handle
fgetpos->a function to get the current pointer position
ferror->is a "macro" to find whether there is an error in
the entered stream
therefore the ans is (iv) ferror..which is not a function
but a macro...:)
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the explanation for prototype function in c?
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?
how the compiler treats any volatile variable?Explain with example.
write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is the general form of a C program?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What’s the special use of UNIONS?
difference between native and cross compilers
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
Explain what is dynamic data structure?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none