1. How is the offset calculated for a multidimensional array reference? Derive the formula.
2. Translate the C statements ‘p=& arr[3]; *p=10;’ into TAC. What TAC operators are useful during the translation of pointer accesses?
3. Translate the C statement ‘x.age = 30;’ into TAC. Assume that the field ‘age’ is at an offset of 20 bytes from the base of the structure. What are the common TAC operators used during the translation of ‘struct’ references using the dot operator?
4. Translate the C statement