问题 单项选择题

运行下列程序后,输出结果是( )
void fun(int x,int y,int *cp,int *dp)
*cp=x+y;*dp=x-y;
main()
int a=6,b=2;
fun(a+b,a-b,&a,&b);
printf("%d,%d\n",a,b);

A.6,2
B.8,4
C.12,4
D.8,2

答案

参考答案:C

选择题
填空题