运行下列程序后,输出结果是()
int fun(int x,int y,int *cp,int *dp )
{*cp=x+y;*dp=x—y;)
main()
{int a=5,b=2;
fun(a+b,a—b,&a,&b);
printf("%d,%d\n",a,b);
}
A.5,2 B.5,4 C.10,2 D.10,4正确答案D
运行下列程序后,输出结果是()
int fun(int x,int y,int *cp,int *dp )
{*cp=x+y;*dp=x—y;)
main()
{int a=5,b=2;
fun(a+b,a—b,&a,&b);
printf("%d,%d\n",a,b);
}
A.5,2 B.5,4 C.10,2 D.10,4正确答案D