/* Q (about structs and pointers) from week 7 Tutorial */ #include #include typedef int mark; typedef struct { int a; int *b; } foobar; int main(void) { mark x = 2.6; /* casts by rounding down to 2 */ foobar y; y.a = x; y.b = &y.a; x++; int z = *y.a; return EXIT_SUCCESS; }