单项选择题

有以下程序:
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);
相关试题
  • 有以下程序: void f(int V,int W)...
  • 设有如下关系表: S B C 1 3 T A...
  • 以下程序中函数f的功能是:当flag为1时,...
  • 有以下程序段: struct st int X;int...
  • 已定义以下函数: int fun(int *D) ...