#include typedef struct { int x,y; } point; void bar(point* p1, point* p2) { point p={p1->x, p2->y}; p.x = 5; p.y = 6; *p2 = p; p