CS471 Programming Language Structure I
Spring 1999

Homework 2

  1. problem 14 on page 193 (dynamic scoping using Pascal syntax)
  2. Develop a two-dimensional array scheme in C where each row has the type "array of 3 integers", and there are four rows. Compile your code using a simple test program. Verify that two-dimensional arrays are stored in row major order by showing code that uses pointer arithmetic.
  3. problem 21 on page 286 (subexpression evaluation order)

Due Date

Wednesday March 10th, in class.