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
1
Answer:
4+8+4=16................
Similar questions
Science,
2 months ago
Social Sciences,
2 months ago
Chemistry,
2 months ago
Computer Science,
4 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Computer Science,
10 months ago