English, asked by sweety7470, 4 months ago

What is the size of the union data structure given below. union u ( struct Pint: int ya
point
O 4
6
8
O
12​

Answers

Answered by sahuarti1983
0

Answer:-

When we declare a union, memory allocated for the union is equal to memory needed for the largest member of it, and all members share this same memory space. Since u is a union, memory allocated to u will be max of float y(4 bytes) and long z(8 bytes). So, total size will be 18 bytes (10 + 8).Mar 7, 2018

Similar questions