单项选择题
下面结构体的定义语句中,错误的是
A) struct ord int x;int y;int z;;struct ord a;
B) struct ord int x;int y;int z; struct ord a;
C) struct ord int x;int y;int z; a;
D) struct int x;int y;int z;a;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: int fun(int x[],int n) static int sum=0,i; for(i=0;i<n;i++)sum+=x[i]; return sum; main() int a[]=1,2,3,4,5,b[]=6,7,8,9,s=0; s= fun(a,5)+fun(b,4); printf( %d n ,s); 程序执行后的输出结果是
A) 45
B) 50
C) 60
D) 55
点击查看答案&解析
单项选择题
有以下程序: #include <stdio.h> void fun(char*a,char*b) while(*a=='*')a++; while(*b=*a)b++;a++; main() char *s= *****a*b**** ,t[80]; fun(s,t);puts(t); 程序的运行结果是
A) *****a*b
B) a*b
C) a*b****
D) ab
点击查看答案&解析
相关试题
有以下程序: #include <stdio.h> m...
以下程序运行后的输出结果是______。...
阅读下面程序段,执行后输出的结果是___...
下面程序的功能是输出数组s中最大元素的下...
有以下程序: #include <stdio.h> i...