单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
若有定义int x=0,*p=&x;,则语句printf( %d n ,*p);的输出结果是【 】。
A.随机值
B.0
C.x的地址
D.p的地址
点击查看答案&解析
单项选择题
若各选项中所用变量已正确定义,函数fun中通过return语句返回—个函数值,以下选项中错误的程序是【 】。
A.main() {……X=fun(2,10);……} float fun(int a,int b){……}
B.float fun(int a,int b){……} main(){……X=fun(i,j);……}
C.float fun(int,int);main() {……x=fun(2,10);……} float fun(int a,int b){……}
点击查看答案&解析
相关试题
数据管理技术发展过程经过人工管理、文件系...
以下程序的运行结果是【 】#include <s...
以下程序从终端读入数据到数组中,统计其中...
以下程序运行后的输出结果是【 】。main ...
【 】的任务是诊断和改正程序中的错误。