C Programming - MCQ Practice Questions
Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.
978 questions | 100% Free
What is the purpose of using anonymous structures/unions?
Consider this structure: struct Complex { int real; int imag; }; If you want to create an array of 100 such structures, which declaration is correct?
Consider the following code: struct Data { int x; char y; double z; }; Assuming int=4 bytes, char=1 byte, double=8 bytes, what is the size of struct Data due to padding?
Which feature in C allows you to define a structure without a tag name for use within another structure?
In the context of bit fields in structures, what is the maximum number of bits that can be allocated to a single member in standard C?
Which of the following statements about structure initialization in C is INCORRECT?