单选题

为了实现两数交换,代码如下:

void swapAB(int &a,int &b)

b=a-b;a=a-b;

则空格内要填人的语句是(


A.

a=a+b

B.

a=a*b

C.

a=a-b

D.

a=a8b

发表评论

登录 后再回复