CS 375, Compilers: Example Question Answers for Midterm Exam


Addressing:

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

          person  = record name:     alfa;
                           age:      integer;
                           location: complex;
                           weight:   real;
                           salary:   real     end;

     var  people = array [ 7..14, (austin, dallas, houston)]
                          of person;

Other Questions: