Professional Documents
Culture Documents
3. Give an example of
a. Recursive types in C.
b. Union in C.
c. A Tuple in ML
d. A subtype in Ada
4. struct stA{ stA b;
char x; struct stA c;
int y; struct {
} a; char x;
typedef struct stA stA; int y;
Struct stA a; } d;
Among a, b, c, d which ones are structurally equivalent and which ones are name
equivalent?
5. Bonus Credit: -
In C, define a function type from chars to chars and use this type for variables or
parameters.