C - Structure and Union Questions and Answers
The topic C – Structure and Union is frequently featured in C programming MCQ sections of campus placements and technical interviews for companies like Infosys, TCS, and Wipro. Understanding how structures and unions store data is vital for efficient memory management in C. This topic strengthens the fundamentals of data organization, helping candidates write optimized and modular code. Practicing C programming questions and answers on Structure and Union will enhance your understanding and help you tackle programming interview challenges effectively.
C - Structure and Union
Showing 10 of
51 questions
51. What is the size of ptr1 and ptr2? struct x { int j; charr k [100]; unsigned i; }; int *ptr1: struct x *ptr2;
- same depending on the model used
- 2, 104
- 2, undefined for memory is not allocated
- 2, 4