/* 3. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ½á¶ó. */ #include typedef struct _point { int x; int y; } Point; void add(Point *a,Point *b, Point c) { c.x = a->x + b->x; c.y = a->y + b->y; } void add1(Point *p) { p->x = p->x + 1; p->y = p->y + 1; } main() { Point a = { 10, 10 }; Point b = { 20, 30 }; Point c = { 40, 50 }; add(&a,&b,c); add1(&c); printf("result = (%d,%d)\n",c); }