Consider: union Data { int i; float f; char c; }; What is the size of this union?
How do you access a member of a structure through a pointer in C?
Which of the following correctly demonstrates a typedef for a structure?
Which of the following is the correct way to initialize a structure in C?
Which of the following statements about structures is TRUE?
Advertisement
Consider the following code:
struct Data {
int a;
char b;
};
struct Data d = {10, 'A'};
Which method of initialization is used here?
What is the primary difference between a struct and a union in C?
Which of the following correctly demonstrates accessing a member of a pointer to a structure?
In C, what does the 'typedef' keyword do when used with structures?
Given: struct Node { int data; struct Node *next; }; This represents which data structure concept?
In the context of structures, what does 'self-referential' mean?
What is the key difference between a structure and a union in C?
struct Node { int data; struct Node *next; }; This is an example of which design pattern?
Given a structure with array members, how would you efficiently pass it to a function to avoid copying overhead?