#include union Sti { int nu; char m; }; int main() { union Sti s; printf("%d", sizeof(s)); return 0; }
Click an option to check whether your answer is correct.
Output:
4
Since the size of a union is the size of its maximum datatype, here int is the largest hence 4.
Explore more questions from similar topics.
Share this MCQ with your friends or study group.