COEN 171
Principles of Programming Languages
Winter 2000
Page 189 ff: 8, 10, 12
Page 255 ff: 2, 13
Assume double
precision reals are stored in 64 bits on a machine where each address represents
a byte. What is the offset for element A[4, 7], where A is a 2-dimensional
array declared
A: array [-1..5,
6..9] of double;
if the array is
stored in (a) row major order? (b)
column major order?
Page 285 ff: 14,
15
Page 325 ff: 10, 16