3.68 Alignment
★★★
In the following code, A and B are constants defined with #define
:
GCC generates the following code for setVal
:
What are the values of A and B? (The solution is unique).
The offset of t in str2 is 8, and the offset of u in str2 is 32. So we know that:
the offset of y in str1 is 184, so we know that:
and we know that:
so, A=9 and B=5.
Last updated