现有如下程序段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));}则程序的输出结果为
查看答案
现有如下程序段 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
阅读下面程序,则执行后输出的结果为 voidfun(int*a,int*b){ intm;m=(*a+*b)*(*a+*b);m+=(*a-*b)*(*a-*b);printf("%d\n",m);} main() { inta=5,b=6,*x=&a,*y=&b;fun(x,y);}
A. 120
B. 121
C. 122
D. 123
阅读下面程序,则执行后的结果为main(){char *str="abcdefghijklmnopq";while(*str++!=′e′);printf("%c\n",*str);}
A. f
B. a
C. e
D. q
现有如下程序段 intfun(intk,int*m){if(k%3)*m=k*k;else*m=k/3;} main(){int(*p)(int,int*),m; p=fun; (*p)(78,&m); printf("%d\n",m); } 则程序段的输出结果为
A. 24
B. 25
C. 26
D. 27