Structure and Union MCQs

190 questionsC-ProgramPage 2 of 22

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 10easy
Can a structure have another structure as a member in C?
Question 11medium
Which operator is used to access a union member when the union is a part of a structure?
Question 12medium
What happens when you assign a value to one member of a union and then access another member in C?
Advertisement
Question 13easy
Which keyword is used to define an anonymous structure or union within another structure or union?
Question 14medium
In a union, which member can you access safely after assigning a value to one of its members?
Question 15medium
Which type of variable should you use if you want to store different types of data at different times within the same memory location?
Advertisement
Question 16medium
Which of the following is true about the memory allocation of structures and unions in C?
Question 17medium
In C, can a structure be passed as an argument to a function?
Question 18easy
What is the purpose of using a typedef with structures and unions in C?
Structure and Union MCQs with Answers & Solutions — C-Program | GrabStudy