Question: Problem 2 [10pt] Consider the following C declaration: union Ul (int a; float b; i union U2 (char a; double b; ) struct S union
![Problem 2 [10pt] Consider the following C declaration: union Ul (int](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f4574cdb71d_16466f4574c81073.jpg)
Problem 2 [10pt] Consider the following C declaration: union Ul (int a; float b; i union U2 (char a; double b; ) struct S union Ui uli union U2 u2; si Assume that the machine has 1-byte characters, 4-byte integers, 8-byte floating numbers, and 16-byte double-precision floating numbers. Assume the compiler does not reorder the fields, and it leaves no holes in the memory layout. a) (4pt) How many bytes does s occupy? b) (6pt) If the memory address of s starts from 1000, what are the start addresses of s.ul.b and s.u2.b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
