Problem 1. Consider the following type declarations ΤΥΡE A1 : integer; A2 : pointer to float; A3 : pointer to integer; T1 : structure { x : integer; } T2 : structure { x : A; next : pointer to...



Copy paste from other websites will be downvoted directly. Thank you!


Problem 1. Consider the following type declarations<br>ΤΥΡE<br>A1 : integer;<br>A2 : pointer to float;<br>A3 : pointer to integer;<br>T1 : structure { x : integer; }<br>T2 : structure { x : A;<br>next : pointer to integer; }<br>T3 : structure { a<br>: integer;<br>b: float; }<br>T4 :<br>structure { b: float;<br>: integer; }<br>a<br>T5 : structure { a<br>: pointer to T5; b : pointer to T6; c<br>: pointer to T7; }<br>T6 : structure { a<br>: pointer to T6; b : pointer to T5; c : pointer to T5; }<br>T7 : structure { a<br>: pointer to T6; b : pointer to T7; c : pointer to T9; }<br>T8 :<br>structure { a<br>: pointer to T7; b : pointer to T 6; c : pointer to T10; }<br>T9 : array [4] [5] of T8;<br>T10 : array [4] [5] of T7;<br>// array 4 rows 5 columns<br>Assuming the most permissive definition of structural equivalence, which types are<br>structurally equivalent?<br>

Extracted text: Problem 1. Consider the following type declarations ΤΥΡE A1 : integer; A2 : pointer to float; A3 : pointer to integer; T1 : structure { x : integer; } T2 : structure { x : A; next : pointer to integer; } T3 : structure { a : integer; b: float; } T4 : structure { b: float; : integer; } a T5 : structure { a : pointer to T5; b : pointer to T6; c : pointer to T7; } T6 : structure { a : pointer to T6; b : pointer to T5; c : pointer to T5; } T7 : structure { a : pointer to T6; b : pointer to T7; c : pointer to T9; } T8 : structure { a : pointer to T7; b : pointer to T 6; c : pointer to T10; } T9 : array [4] [5] of T8; T10 : array [4] [5] of T7; // array 4 rows 5 columns Assuming the most permissive definition of structural equivalence, which types are structurally equivalent?

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here