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 will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
write a program to print data of 5 five students with structures?
Tell us the use of fflush() function in c language?
Is that possible to add pointers to each other?
Explain b+ tree?
how to create c progarm without void main()?
What do you understand by friend-functions? How are they used?
A C E G H +B D F A I ------------ E F G H D
What is difference between structure and union with example?
String concatenation
Explain setjmp()?
What are preprocessor directives?