下面程序的运行结果为include<iostream,h>Void swap(int &a,int b){int temp;temp=a++;a=b;

下面程序的运行结果为 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-10-07 12:56:40

相似题目