Section 9.7: A pointer example (Frame 2)                     [prev][home][next]

Some concessions were made to clarity and to enable the C code to be more closely tied to the following CSC-1 assembler version. A while loop was used instead of a for-loop for this reason and some other contractions were omitted as well. For example, the while loop could have been squished down to:

     while (i++ < max)
          sum += *pointer++;