Repeat Exercise 8.6.1 parts (d) and (e), assuming that the arrays a, b, and c are located via pointers, pa, pb, and pc, respectively, pointing to the locations of their respective first elements.
Exercise 8.6.1
For each of the following C assignment statementsa) x = a + b*c;b) x = a/(b+c) - d*(e+f);c) x = a[i] + 1;d) a [ i ] = b [ c [i]] ;e) a[i][j ] = b[i][k ] + c[k][j];f) *p++ = *q++;generate three-address code, assuming that all array elements are integers taking four bytes each. In parts (d) and (e), assume that a, b, and c are constants giving the location of the first (Oth) elements of the arrays with those names, as in all previous examples of array accesses in this chapter.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here