单项选择题
有以下程序:
void swap1(int c[1]
int t;
t=c[0];c[0]=c[1]=c[1]=t;
void swap2int c0,int c1
int t;
t=c0;c0=c1;c1=t;
main()
int a[2]=[3,5],b[2]=(3,5);
swap1(
A.;swap2(b[0],b[1]);
pr
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列数据结构中,能用二分法进行查找的是( )。
A.顺序存储的有序线性表
B.线性链表
C.二叉链表
D.有序线性链表
点击查看答案&解析
单项选择题
若变量已正确定义,以下while循环不断输出读入的字符,当读入回车符时结束循环,正确的程序段是( )。
A.while(ch=getchar()=='\N')putchar(ch);
B.while(ch=getchar())=='\n')putchar(ch);
C.while(ch=getchar()!=='\N')putchar(ch);
D.while(ch=getchar()==‘\n’)putchar(ch);
点击查看答案&解析
相关试题
2 4 6 8
以下程序的输出结果是______。 #in...
下面程序段是输出两个字符串中对应相等的字...
有以下程序: #define N 20 fun(in...
以下程序的输出结果是 (7) 。 main(...