Question: Consider the following: typedef struct { int x; char y; } Rec1; typedef Rec1 Rec2; typedef struct { int x; char y; } Rec3; Rec1
Consider the following:
typedef struct
{
int x;
char y;
} Rec1;
typedef Rec1 Rec2;
typedef struct
{
int x;
char y;
} Rec3;
Rec1 a, b;
Rec2 c;
Rec3 d;
Specify which of the variables a,b,c,d are type equivalent under (a) structural equivalence, (b) strict name equivalence, and (c) loose name equivalence.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
