单项选择题

以下程序运行后,输出结果为______。
main()
int a[2][3]=1,3,5,7,9,11,*s[2],**pp,*p;
s[0]=a[0],s[1]=a[1];
pp=s;
p=(int*)malloc(sizeof(int));
**pp=s[1][1];
p=*pp;
printf("%d\n",*p);

A.1
B.7
C.9
D.11
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是______。 #include<stdio.h> #include<siring.h> fun(char *w,int n) char t,*s1,*s2; s1=w;s2=w+n-1; while(s1<s2) t=*s1++; *s1=*s2-; *s2=t; main() char *p; p= 1234567 ; fun(p,strlen(p)); puts(p);
A.1234567
B.7654321
C.1711717
D.7177171
单项选择题
若有程序 fun(int a,int b) static int c=0; c+=a+b; rerurn c; main() int x=5,y=3,z=7,r; r=fun(y,x+y),z); r=fun(x,y); printf( %d n ,r); 上面程序的输出结果是______。
A.23
B.15
C.19
D.18
相关试题
  • 下面程序的输出是______。 main()...
  • 有以下程序: #include<stdio.h> mai...
  • 有以下程序,程序运行后的输出结果是___...
  • 下面程序 main() int x=100, a...