Explore topic-wise MCQs in C programming (MCQ) questions.

This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your C programming (MCQ) questions knowledge and support exam preparation. Choose a topic below to get started.

1.

What will be the size of the following structure?#include struct temp{int a[10];char p;};

A. 5
B. 11
C. 41
D. 44
Answer» E.
2.

Which among the following is never possible in C when members in a structure are same as that in a union?//Let P be a structure//Let Q be a union

A. sizeof(P) is greater than sizeof(Q)
B. sizeof(P) is equal to sizeof(Q)
C. sizeof(P) is less than to sizeof(Q)
D. None of the above
Answer» D. None of the above
3.

Which among the following is never possible in C when members are different in a structure and union?//Let P be a structure//Let Q be a union

A. sizeof(P) is greater than sizeof(Q)
B. sizeof(P) is less than sizeof(Q)
C. sizeof(P) is equal to sizeof(Q)
D. None of the above
Answer» E.