8. Select a function which is used to write a string to a file a) pits() b) putc) c) fputs() d) fgets() 9. If there is any error while opening a file, fopen will return? a) Nothing b) EOF c) NULL d) Depends on compiler 10. What will be the size of the following structure? #include <stdio.h> struct temp { int a[10]: char p; }; a) 5 b) 11 c) 41 d) 44 11. What is a structure in C language? a) A structure is a collection of elements that can be of same datatype b) A structure is a collection of elements that can be of different datatype c) Elements of a structure are called members d) All of the these
12. Which operator connects the structure name to its member name? a) - b). c) Both (b) and (c) d) None of these 13. What is actually passed if you pass a structure variable to a function? a) Copy of structure variable b) Reference of structure variable c) Starting address of structure variable d) Ending address of structure variable 14. Which properly declares a variable of struct foo? a) struct foo; b) struct foo var; c) foo; d) int foo; 15. The correct syntax to access the member of the ith structure in the array of structures is? struct temp int b; struct temp s[50]; a) s.b.; b) s..b; c) s.b; d) s.b;
8. Select a function which is used to write a string to a file a) pits() b) putc) c) fputs() d) fgets() 9. If there is a
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
8. Select a function which is used to write a string to a file a) pits() b) putc) c) fputs() d) fgets() 9. If there is a
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!