Explore topic-wise MCQs in C Programming.

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

1.

Which of the following cannot be used inside sizeof?

A. pointers
B. functions
C. macro definition
D. none of the mentioned
Answer» E.
2.

Which among the following statement is right?

A. sizeof(struct stemp*) > sizeof(union utemp*) > sizeof(char *)
B. sizeof(struct stemp*) < sizeof(union utemp*) < sizeof(char *)
C. sizeof(struct stemp*) = sizeof(union utemp*) = sizeof(char *)
D. the order Depends on the compiler
Answer» D. the order Depends on the compiler
3.

What will be the size of the following C structure?

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

Which among the following is never possible in C when members in a structure are the same as that in 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 mentionedView Answer
Answer» D. none of the mentionedView Answer
5.

Which among the following is never possible in C when members are different in a structure and 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 mentionedView Answer
Answer» E.