单项选择题
有如下程序:
#include<iostream>
using namespace std;
void fun(int&x,int y)int t=x;x=y;y=t;
int main()
int a[2]=1,2;
fun(a[1],a[0]);
std::cout<<a[0]<<","<<a[1]<<std::end1;
return 0;
执行后的输出结果是( )。
A.2,2
B.1,1
C.1,2
D.2,1
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
不改变关系表中的属性个数但能减少元组个数的是______。
点击查看答案&解析
问答题
有如下程序: #include<iostream> using namespace std; class AA int n; public: AA(int k):n(k) int get()return n; int get()constreturn n+1; ; int main() 从a(5); const AA b(6); cout<<a.get()<<b.get(); return 0; 执行后的输出结果是( )。
点击查看答案&解析
相关试题
已知一个函数的原型是: int fn(double...
非成员函数应声明为类的______函数才...
指针数组是由______构成的数组。
以下函数实现的功能是______。 void...
在类中,______成员为类的所有对象所...