单选题:函数swap(a,n)可完成对a数组从第1个元素到第n个元素两两交换。其中b[o]=1;b[1]=2;swap(b,2) 题目分类:C++ 题目类型:单选题 号外号外:注册会员即送体验阅读点! 题目内容: 函数swap(a,n)可完成对a数组从第1个元素到第n个元素两两交换。其中b[o]=1;b[1]=2;swap(b,2)。在运行调用函数中的语句后,b[0]和b[1]的值分别为( )。 A.1,1 B.1,2 C.2,2 D.2,1 参考答案:【答案仅供学习,请勿对照自行用药等】 答案解析:
What does the woman advise the man to do? What does the woman advise the man to do?A.Solve it as soon as possible. B.Count 分类:C++ 题型:单选题 查看答案
下列程序段中的变量已正确定义: for(i=0;i<4;i++,i++)for(k=1;k<3;k++);printf( 下列程序段中的变量已正确定义: for(i=0;i<4;i++,i++)for(k=1;k<3;k++);printf("*"); 程序段的输出结果是( 分类:C++ 题型:单选题 查看答案
Both sides could make these talks succeed______seeking comm Both sides could make these talks succeed______seeking common ground. A.with B. 分类:C++ 题型:单选题 查看答案
有下列程序: #include<stdi0.h>#include<stdlib.h>intfun(intn){int*P 有下列程序: #include#includeintfun(intn){int*P; p=(int*)mallo 分类:C++ 题型:单选题 查看答案
若有定义语句“doublex[5]={1.0,2.0,3.0,4.0,5.0},*p=x”,则错误引用X数组元素的是( 若有定义语句“doublex[5]={1.0,2.0,3.0,4.0,5.0},*p=x”,则错误引用X数组元素的是( )。 A.*p B.x[5] C.*( 分类:C++ 题型:单选题 查看答案