40. 다음 C프로그램의 실행 결과는?
#include
void change(int *px, int *py, int pc, int pd);
void main(void)
{
int a=10, b=20, c=30, d=40;
change(&a, &b, c, d);
printf( a=%d b=%d c=%d d=%d , a, b, c, d);
}
void change(int *px, int *py, int pc, int pd)
{
*px = *py + pd; *py = pc + pd;
pc = *px + pd; pd = *px + *py;
}
- 1a=60 b=70 c=50 d=30

- 2a=60 b=70 c=30 d=40

- 3a=10 b=20 c=50 d=30

- 4a=10 b=20 c=30 d=40
