/* 4. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ½á¶ó. */ #include struct data { int x; int y; }; void add(struct data a,struct data b, struct data c) { c.x = a.x + b.x; c.y = a.y + b.y; } main() { int number[5] = { 1, 2, 3, 4, 5 }; struct data a; struct data b; struct data c; int z; a.x = number[0]; a.y = number[1]; b.x = number[2]; b.y = number[3]; c.x = number[4]; c.y = number[4]; add(a,b,c); z = c.x + c.y; printf("%d\n",z); }