#include<stdio.h>
int a[3][3]={1,2,3,4,5,6,7,8,9,},*p;
main()
{ p=(int*)malloc(sizeof(int));
f(p,a);
printf("%d/n",*p);
free(p); }
f(int *s, int p[][3])
{ *s=p[1][1];}
A.1
B.4
C.7
D.5
[单选题]以下程序的输出结果是#include<stdio.h>int a[3][3]={1,2,3,4,5,6,7,8,9,},*p;main(){ p=(int*)malloc(sizeof(int));f(p,a);printf("%d/n",*p);free(p); }f(int *s, int p[][3]){ *s=p[1][1];}A.1B.4C.7D.5
[单选题]以下程序的输出结果是#include<stdio.h>int fun(int n,int *s){ int f1,f2;if(n==0||n==1)*s=1;else{ fun(n-1,&f1);fun(n-2,&f2);*s=f1+f2;} }void main(){ int x;fun(6,&x);printf("/n%d",x);}A.7B.13C.9D.10
[单选题]以下程序的输出结果是#include<stdio.h>main(){int a=15,b=21,m=0;switch(a%3){case 0:m++;break;case 1:m++;switch(b%2){ default:m++;case 0:m++;break; } }printf("%d/n",m);}A.1B.2C.3D.4
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[单选题]以下程序输出的结果是#include<stdio.h>#include<string.h>main(){ char w[][10]={"ABCD","EFGH","IJKL","MNOP"},k;for(k=1;k<3;k++) printf("%s/n",&w[k][k]);}A.ABCD FGH KLB.ABC EFG IJ MC.EFG JK 0D.FGH KL
[单选题]下面程序的输出结果是#include<stdio.h>main(){ int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%d/n",*p+9);}A.0B.1C.10D.9
[单选题]下面程序的输出结果是#include<stdio.h>main(){ int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("%d/n",*p+9);}A.0B.1C.10D.9
[主观题]以下程序的输出结果是_[13]_______#include <stdio.h>#include <string.h>char *fun(char *t){ char *p=t;return(p+strlen(t)/2);}main(){ char *str="abcdefgh";str=fun(str);puts(str);}
[试题]以下程序的输出结果是_[19]_______#include <stdio.h>#define M 5#define N M+Mmain(){ int k;k=N*N*5; printf("%d/n",k);}
[单选题]下面程序的输出结果是#include<stdio.h>#include<string.h>main(){ char *p1="abc",*p2="ABC",str[50]= "xyz";strcpy(str+2,strcat(p1,p2));printf("%s/n",str);}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC