下面程序的运行结果为()。 include<iostream.h> void swap(int &a,int B) { int temp; temp=a++; a=b; b=temp; } void main() { int a=2,b=3; swap(a,b); cout<<a<<“,”<<b<<end1; }

A.2,3 B.3,2 C.2,2 D.3,3

时间:2023-03-17 15:24:03

相似题目