#include struct point { int x; int y; }; struct rect { struct point p1; struct point p2; }; int main(void) { struct point pt1, pt2; struct rect r; pt1.x = 5; pt1.y = 6; pt2.x = 17; pt2.y = 18; r.p1 = pt1; r.p2 = pt2; return 0; }