单项选择题

有以下程序:
#include <stdio.h>
void swap1(int c[])
int t;
t=c[0]; c[0]=c[1]; c[1]=t;
void swap2(int 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]);
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> #include <string.h> main(int argc,char *argv[]) int i,len=0; for(i=1;i<argc;i+=2)len+=strlen(argv[i]); prinff( %d n ,len); 此程序经编译链接后生成的可执行文件是ex.exe,若运行时输入以下带参数的命令行: ex abed efg h3 k44则执行后的输出结果时( )。
A.14
B.12
C.8
D.6
单项选择题
有以下程序: #include <stdio.h> int f(int b[] [4]) int i,j,s=0; for(j=0;j<4;j++) i=j; if(i>2) i=3-j; s+=b[i][j]; return s; main() int a[4][4]=1,2,3,4,0,2,4,6,3,6,9,12,3,2,1,0; printf( %d n ,f(
A.);
&nbs
相关试题
  • 有以下程序: #include <stdio.h> ...
  • 有以下程序: #include <stdio.h> c...
  • 有以下程序: #include <stdio.h> v...
  • 有以下程序: #include <stdio.h> s...
  • 有以下程序: #include <stdio.h> m...