单项选择题
若有以下定义和语句
struct a
int n,m;;
struct a st[3]=1,20,2,19,3,21;
struct a*p=st;
则以下错误的引用是
A.(p++)->n;
B.st[0].n;
C.(*p).n;
D.p=&st.m;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
请阅读以下程序: #include<stdio.h> void fun(int s[]) static int j=0; do s[j]+=s[j+1]; while(++j<2); main() int k,a[10]=1,2,3,4,5; for(k=1;k<3;k++)fun(
A.;
for
点击查看答案&解析
单项选择题
阅读下列程序段,则程序的输出结果为 #include stdio.h #define M(X,Y)(X)*(Y) #define N(X,Y)(X) (Y) main() int a=5,b=6,c=8,k; k=N(M(a,b),c); printf( %d n ,k);
A.3
B.5
C.6
D.8
点击查看答案&解析
相关试题
下列程序的运行结果为 #include<stdio....
以下程序中函数sort的功能是对a数组中的数...
阅读如下程序段 #include stdio.h voi...
有一堆零件(100到200之间),如果分...
以下描述中正确的是