有以下程序#includevoid fun(int *a,int i,int j){int t;if (i
A. 6 5 4 3 2 1
B. 4 3 2 1 5 6
C. 4 5 6 1 2 3
D. 1 2 3 4 5 6
查看答案
有以下程序#includeint main(int argc,char *argv[]){int n,i=0;while(argv[1][i]!='\0'){n=fun();i++;}printf("%d\n",n*argc);return 0;}int fun(){static int s=0;s+=1;return s;}假设程序编译、连接后生成可执行文件exam.exe,若键入以下命令exam 123〈回车〉则运行结果为________
A. 3
B. 4
C. 6
D. 8
下列程序的输出结果是________#include int main ( ){char a[10]= {9,8,7,6,5,4,3,2,1,0},*p=a+5;printf("%d",*--p);return 0;}
A. 非法
B. a[4]的地址
C. 4
D. 5
下面程序的输出结果是________#include int main(){int a[ ]= {1,2,3,4,5,6,7,8,9,0,},*p;p=a;printf("%d\n",*p+9);return 0;}
A. 0
B. 1
C. 9
D. 10
以下程序的输出结果是_________#include int main(){int i, x[3][3]= {1,2,3,4,5,6,7,8,9};for(i=0; i<3; i++) printf("%d,",x[i][2-i]);return 0;}
A. 1,4,7,
B. 1,5,9,
C. 3,5,7,
D. 3,6,9,