填空题

下列程序输出结果是______。
#include<stdio.h>
void main()

in a[5]=2,4,6,8,10,*p;
p=a;p++;
printf("%d",*p);

【参考答案】

D
<上一题 目录 下一题>
热门 试题

填空题
下列程序中函数fun的功能是统计person所指结构体数组中所有性别(sex)为M的记录个数,存入变量n中,并作为函数值返回,请填空。 #include<stdio.h> #define N 3 typedef struct int num;char nam[10];char sex;) ss; int fun(SS person[]) for(i=0;i<N;i++) int i,n=0; if(______==’M’)n++; return n; void main() SS W[N]=1, AA ,’F’),2, BB ,’M’),3, CC ,’M’;int n; n=fun(w);printf( n=%d n ,n);
填空题
下列程序的输出结果是______。 #include<stdio.h> void fun(int x) if(x 2>0)fun(x 2); printf( %d ,x); void main() fun(3);printf( n );
相关试题
  • 下列程序从各为filea.dat的文本中逐个字符...