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 |
When should a type cast not be used?
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?
What are global variables and how do you declare them?
given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)
What is pointers in c with example?
main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) }
5 Answers Amazon, HCL, Thought Works,
Is calloc better than malloc?
What are structures and unions? State differencves between them.
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What are the different types of C instructions?
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...