logo

Crowdly

Browser

Add to Chrome

union test { int x; char arr[8]; int y; }; int main() { printf(...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

union test

{

int x;

char arr[8];

int y;

};

int main()

{

printf("%d", sizeof(union test));

return 0;

}

Assume int = 4 bytes, char = 1 byte, no alignment.

More questions like this

Want instant access to all verified answers on lms.aub.edu.lb?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome