单选题 C++
题号 #153214

下面程序的运行结果为 
#include 
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 <<<< 
}

进入在线模考

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题

A.内联函数  
B.重载函数  
C.递归函数  
D.嵌套函数
A.在C++语言中变量分为auto,static,extern和register四种存储类型 
B.自动变量和外部变量的作用域为整个程序 
C.内部静态变量的作用域是定义它的函数 
D.外部静态变量的作用域是定义它的文件
找试题 · 找答案 · 找资料 在线模考