What is the output of the following C program? Assume size of integer as 4…

What is the output of the following C program? Assume size of integer as 4 bytes and size of character as 1 byte. union XYZ { int a; char b[8]; int c; }; int main() { printf("%d",sizeof(union XYZ)); return(0); }

  1. A.

    16

  2. B.

    12

  3. C.

    8

  4. D.

    32

Sign up free to check your answer

Sign up free

Explore the full course: C Language

Loading lesson…