Professional Documents
Culture Documents
Short Answer Questions On Structures: Struct x1 ( ) Typedef Struct ( ) x2
Short Answer Questions On Structures: Struct x1 ( ) Typedef Struct ( ) x2
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 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 { } x2
18. Write a brief note on
a) typedef .
b) enum
19. What is structure tag? What is its purpose?
20. What is the memory allocated to a structure after structure definition is done?
POINTERS
1. What is a null pointer? When is a null pointer used?
2. What is a void pointer? When is a void pointer 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?