Question: (b) Consider the following more complex declarations: R: record X: integer; Y: char; A: array [1:10 , 10:20 ] of record Z: real; B: array

(b) Consider the following more complex declarations:

R: record

X: integer;

Y: char;

A: array [1:10 , 10:20 ] of record

Z: real;

B: array [ 10:71 ] of char;

end record;

end record;

I, K: integer;

Assume that these declarations are local to the current subprogram.

Note the lower bounds on indices in A; the first element is A[ 1 , 10] which is stored in location 2000.

Compute the address of the record component R.A[ 2 , J ].B[ K ].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!