单项选择题
下列结构体的定义语句中,错误的是( )。
A.struct ord {int x;int y;int z;};struct ord a;
B.struct ord {int x;int y;int z;}stmct ord a;
C.stmct ord {int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有下列程序: #include<stdio.h> #define f(x)x*x*X main() { int a=3,s,t; s=f(a+1) ;t=f((a+1) ); printf( %d,%d n ,s,t); } 程序运行后的输出结果是()。
A.10,64
B.10,10
C.64,10
D.64,64
点击查看答案&解析
单项选择题
有下列程序: #include<Stdio.h> int f(int n); main() { int a=3,s; s=f(A) ;s=s+f(A) ;printf( %d n ,s); } int f(int n) { static int a=1; n+=a++; return n; } 程序运行后的输出结果是()。
A.7
B.8
C.9
D.10
点击查看答案&解析
相关试题
有下列程序: #include<stdio.h> #i...
有下列程序: #include<stdio.h> mai...
以下程序中,与语句:k=a>b(b>c1:0...
设有定义: int a=1,b=2,c=3;,...
下列关于C语言文件的叙述中正确的是( )。