// points.c: illustrates structures in C done the "right" way #include typedef struct { int x; int y; } Point; int main() { Point a; Point b = {2, 3}; a.x = 5; b.x *= a.x; a.y = b.y / 2; printf("a: (%d, %d)\n", a.x, a.y); printf("b: (%d, %d)\n", b.x, b.y); return 0; }