2
SHORT ANSWER QUESTIONS ON STRUCTURES 1. What is a structure? 2. What is a union? 3. What are the differences between structures and union? 4. What are the differences between structures and arrays? 5. What the advantages of using Unions? 6. How are Structure passing and returning implemented by the complier? 7. What is the similarity between a Structure, Union and enumeration? 8. Why can’t we compare structures? 9. How are structure passing and returning as arguments implemented? 10. What are bit fields? What is the use of bit fields in a structure declaration? 11. What is self referential structure? Explain with examples? 12. What are the advantages of structures? 13. How structures are different from arrays? 14. What are the differences between structures and arrays? 15. What is the similarity between a structure, union and enumeration? 16. What is the use of structure and unions? 17. What’s the difference between these two declarations?

Structures Short

Embed Size (px)

DESCRIPTION

hdthtrhth

Citation preview

SHORT ANSWER QUESTIONS ON STRUCTURES1. What is a structure?2. What is a union?3. What are the differences between structures and union?4. What are the differences between structures and arrays?5. What the advantages of using Unions?6. How are Structure passing and returning implemented by the complier?7. What is the similarity between a Structure, Union and enumeration?8. Why cant we compare structures?9. How are structure passing and returning as arguments implemented?10. What are bit fields? What is the use of bit fields in a structure declaration? 11. What is self referential structure? Explain with examples?12. What are the advantages of structures?13. How structures are different from arrays?14. What are the differences between structures and arrays?15. What is the similarity between a structure, union and enumeration?16. What is the use of structure and unions?17. Whats the difference between these two declarations?struct x1 { };typedef struct { } x218. Write a brief note ona) typedef .b) enum19. What is structure tag? What is its purpose?20. What is the memory allocated to a structure after structure definition is done?POINTERS1. What is a null pointer? When is a null pointer used?2. What is avoidpointer? When is avoidpointer used?3. What is array of pointer?4. What is dangling pointer problem?5. What is generic pointer?6. What is NULL pointer?7. What is far pointer?8. What is huge pointer?9. What are demerits of pointers?10. Give an example of pointer to function.11 what is wild pointer?12. Array name is constant pointer. Is it true?