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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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 1
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 1 (34.08 KiB) Viewed 70 times
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 2
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 2 (34.64 KiB) Viewed 70 times
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;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply