Structure and Union MCQs
Practice free Structure and Union multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 190 questions — no login required.
Question 1easy
What is the keyword used to define a structure in C?
Question 2easy
In a structure, what are the members also known as?
Question 3easy
Which of the following can be a member of a structure?
Advertisement
Question 4medium
How do you access a member of a structure in C?
Question 5easy
Which keyword is used to declare a union in C?
Question 6easy
What is the primary difference between a structure and a union in C?
Advertisement
Question 7easy
How is the size of a structure determined in C?
Question 8easy
Which statement correctly defines a structure named "Person" with members "name" and "age" of type char* and int respectively?
Question 9medium
What does the 'sizeof' operator in C return for a union?