运行下列程序后,输出结果是()
f(int m,int n)
{return(m+=m-n);)
main()
{int k=4,m=1;
printf("%d,",f(k,m));
printf("%d\n",f(k,k-m));
}
A、3,1
B、7,5
C、7,13
D、3,13
【正确答案】:B
【题目解析】:f ( k,m ) →k+=k-m得k=7,f ( k,k-m ) → f ( 4 , 3 )得k=5
printf("%d\n",f(k,k-m));
}
">
printf("%d\n",f(k,k-m));
}
">