What is the primary difference between a structure and a union in C?
What will be the output of sizeof(union test) if union has members: int a, char b, float c?
Which keyword is used to define a structure in C?
What is the size of the following structure?
struct point { int x; int y; float z; };
Can we pass a structure variable to a function in C?
Advertisement
Which of the following is a key difference between struct and union in C?
What will be the output of sizeof() for the following union? union data { int a; float b; double c; }
In C, what is a self-referential structure?
Which keyword is used to define a new name for a structure in C?
What is the purpose of padding in C structures?
How do you access a structure member through a pointer in C?
What is the primary advantage of using structures in C?
What is the output of the following code?
struct Point { int x; int y; };
struct Point p = {5};
printf("%d %d", p.x, p.y);
Which of the following is true about typedef struct?
Consider union u { int i; char c; float f; }; What is the size of this union?
Which of these is a valid declaration of a structure variable using dot operator immediately after struct definition?
Which of the following correctly demonstrates self-referential structure (for linked list)?
When structure is passed by value to a function, which of these is true?
What is the correct way to dynamically allocate an array of structures?
struct Student { int roll; char name[50]; };
Which of the following statements about unions is correct?