typedef struct { /* point1.c */ double x; double y; } Point; #include int main() { Point p = {3.0, 4.0}; /* structure initialisation */ Point q; printf("p = (%f, %f)\n", p.x, p.y); /* structure access (reading) */ q = p; /* structure assignment */ q.x += 2.5; /* structure access (writing) */ printf("q = (%f, %f)\n", q.x, q.y); return 0; }