Structures, Unions, Enums on C related Questions and Answers - Page 2

Question 11 : Consider this statement: typedef enum good {a, b, c} hello; Which of the following statements is incorrect about hello?
1. hello is a typedef of enum good
2. hello is a structure
3. hello is a variable of type enum good
4. the statement shown above is erroneous
View Answer   Discuss with Members

Question 12 : One of the major difference between typedef and #define is that typedef interpretation is performed by the _________________ whereas #define interpretation is performed by the _____________
1. pre-processor, compiler
2. user, pre-processor
3. compiler, pre-processor
4. compiler, user
View Answer   Discuss with Members

Question 13 : We want to create an alias name for an identifier of the type unsigned long. The alias name is: ul. The correct way to do this using the keyword typedef is:
1. typedef unsigned long ul;
2. unsigned long typedef ul;
3. typedef ul unsigned long;
4. ul typedef unsigned long;
View Answer   Discuss with Members

Question 15 : Which of the following reduces the size of a structure?
1. union
2. bit-fields
3. malloc
4. none of the mentioned
View Answer   Discuss with Members

Question 16 : Bit fields can only be declared as part of a structure.
1. false
2. true
3. Nothing
4. Varies
View Answer   Discuss with Members

Question 17 : Which function is responsible for recording the name 's' and the replacement text 't' in a table?
1. install(s, t);
2. fix(s, t);
3. setup(s, t);
4. settle(s, t);
View Answer   Discuss with Members

Question 18 : Which of the following may create problem in the typedef program?
1. ;
2. printf/scanf
3. Arithmetic operators
4. All of the mentioned
View Answer   Discuss with Members

Question 20 : Which function is responsible for searching in the table? (For #define IN 1, the name IN and replacement text 1 are stored in a 'table')
1. findout(s);
2. lookup(s);
3. find(s);
4. lookfor(s);
View Answer   Discuss with Members


View 11 - 20 of 46 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter