Ques 1 Structure
Can we pass the structure within a function ?
Ques 2 Structure
Which of the following is the correct syntax of passing structure variable in function?
Ques 3 Structure
What is the difference between union and structure?
Ques 4 Structure
What is the size of structure variable "student"?
struct student{
char name[12];
int roll[6];
float percentage;
}
Ques 5 Structure
Which of the following is the correct way to define a structure in C?
struct person { char name[50]; int age; };
Ques 6 Structure
How do you access a member of a structure using a pointer to the structure?
ptr->member
Ques 7 Structure
What is the size of a structure in C, if the structure is defined as follows? struct example { char a; int b; };
8 bytes
Ques 8 Structure
Which of the following correctly defines a structure with a member that is a pointer?
struct data { int *ptr; };
Ques 9 Structure
Which of the following statements is used to pass a structure by reference to a function in C?
function(&structure);