单项选择题
以下选项中不能正确把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;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序main(){int i;for(i=1;i<=40;i++) {if(i++%5==0)if(++i%8==0)printf( %d ,i);printf( \n );}执行后的输出结果是【 】。
A.5
B.24
C.32
D.40
点击查看答案&解析
单项选择题
阅读以下函数fun(char *sl,char *s2){ int i=0;while(sl[i]==s2[i]&&s2[i]!='' 0'') i++;return(sl[i]=='' 0''&&s2[i]=='' 0'');}此函数的功能是( )。
A. 比较s1和s2所指字符串的大小,若s1比s2的大,函数值为1,否则函数值为0
B. 将s2所指字符串赋给s1
C. 比较s1和s2所指字符串是否相等,若相等,函数值为1,否则函数值为0
D. 比较s1和s2所指字符串的长度,若s1比s2的长,函数值为1,否则函数值为0
点击查看答案
相关试题
有以下程序:void swap1(int c[ ])...
有以下程序#include main(){struct S...
执行以下程序后,test.txt文件的内容是【...
有以下程序(提示:程序中fseek(fp,-2L...
有以下程序#includemain(){FILE * f...