Answers to Type Expressions Practice 1


(Also 09F, E02, CS16, question 4) CS16,P. Conrad, UCSB

The problems that this is an answer key for can be found at the links below:

Expression Type      Expression Type
a double *   i.x error
*b error   i->y int
e struct Circle *   &(j.y) int *
b double   (*g).x double
&b double *   (*g)->y error
*a double   h.x double
*d error   *(h.x) error
e.center error   &g struct Point **
e->x error   argc int
f->y error   argv[0] char *
e->center->x error   argv[0][0] char