Pointer accesses
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 […]