World Languages, asked by manojboddu96, 4 months ago

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);
}

A: 16
B: 12
C: 8
D: 32

Answers

Answered by anonymous937
1

Answer:

4+8+4=16................

Similar questions