阅读下列程序,则执行后的结果为main(){int c[][4]={1,2,3,4,5,6,7,34,213,56,62,3,23,12,34,56};printf("%x,%x\n",c[2][2],*(*(c+1)+1));}
A. 3e,6
B. 62,5
C. 56,5
D. 3E,6
查看答案
下面程序的文件名为t.exe,在DOS下输入的命令行参数如下:t to meet me<回车>则程序输出的结果是main(int argc;char *argv[]){ int i; printf("%d\n",argc); }
A. 3
B. 4
C. 2
D. 以上答案都不正确
现有如下程序段int *fun(int *a,int *b){ int c; c=*a%*b;return &c; }main(){int a=5,b=19,*c; c=fun(&a,&b);printf("%d\n",++*c);}则程序段执行后的结果为
A. 8
B. 7
C. 6
D. 5
现有如下程序段main(){ int a[5][6]={23,3,65,21,6,78,28,5,67,25,435,76,8,22,45,7,8,34,6,78,32,4,5,67,4,21,1};int i=0,j=5;printf("%d\n",*(&a[0][0]+2*i+j-2));}则程序的输出结果为
A. 21
B. 78
C. 23
D. 28
现有如下程序段 main() {char a[]="acfijk"; /*这里是有序的字符序列*/char b[]="befijklqswz"; /*这里是有序的字符序列*/char c[80],*p;int i=0,j=0,k=0;while(a[i]!='\0' && b[j]!='\0'){ if(a[i]b[j]) c[k++]=b[j++];else { c[k++]=b[j++]; i++; }}while(a[i]=='\0' && b[j]!='\0') c[k++]=b[j++];while(a[i]!='\0' && b[j]=='\0') c[k++]=a[i++];c[k]='\0';puts(c);} 则输出结果是
A. acfijkbefijklqswz
B. abceffiijjkklqswz
C. befijklqswzacfijk
D. abcefijklqswz