CS 375, Compilers: Example Questions 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: