单项选择题
以下选项中不能正确把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 <string.h>stru...
有以下程序main(int argc,char *argv...
有以下程序:main( ){ int x[ ]=...
有以下程序:struct STU{ char name[...
数据库DB、数据库系统DBS、数据库管理系统D...