单项选择题
以下选项中不能正确把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;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列选项中不符合良好程序设计风格的是【 】。
A.源程序要文档化
B.数据说明的次序要规范化
C.避免滥用goto语句
D.模块设计要保证高耦合、高内聚
点击查看答案&解析
单项选择题
有以下程序fun(char P[][10]) {int n=0,i; for(i=0;i<7;i++)if(P[i][0]==‘T’)n++; return n;}main(){char str[10]={ Mon , Tue , Wed , Thu , Fri , Sat , Sun };printf( %d\n ,fun(str));}程序执行后的输出结果是
A.1
B.2
C.3
D.0
点击查看答案&解析
相关试题
有以下程序#includemain(){FILE * f...
以下程序企图把从终端输入的字符输出到名为...
有以下程序:void sort(int a[],int...
以下程序中函数reverse( )的功能是将a所...
有以下程序main(){int a=0,b=0;a...