CS 375, Compilers: Example Questions for Final Exam


Addressing:

Consider the following declarations:
     type complex = record  re, im: real  end;

          item  = record name:      alfa;
                         age:       integer;
                         location:  complex;
                         displayed: boolean;
                         color:     array[(red,green,blue)] of integer;
                         link:      ^item;
                         cost:      real     end;

     var items = array [ 8..12, (low, med, hi), 7..11] of item;

Other Questions: