Computer Science: TYPE DECLARATIONS T1 = int; T2 = pointer to T1; T3 = pointer t
ID: 3762849 • Letter: C
Question
Computer Science:
TYPE DECLARATIONS
T1 = int;
T2 = pointer to T1;
T3 = pointer to int;
T4 = pointer to string;
T5 = struct {
a : int;
b : array of T6;
}
T6 = struct {
a : T1;
b : array of T5;
}
T7 = struct {
a: T5;
b: array of T6;
}
Determine which types are structurally equivalent. This would be in a C environment.
Please show work/explain.
Explanation / Answer
T2 and T3 are structurally equivalent because both are pointer of int types.
T5 and T6 are structually equivalent because both are the structure of an int and array of structure.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.