单项选择题
以下选项中不能正确把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;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序void f(int n,int* r){int rl=0;if(n%3=0) rl=n/3;else if(n%5=0) rl=n/5;else f(n,&r1);*r=rl;}main(){int rn=7,r;f(m,&);printf( %d ,r);}程序运行后的输出结果是【 】。
A.2
B.1
C.3
D.0
点击查看答案&解析
单项选择题
以下选项中不能作为合法常量的是【 】。
A.1.234e04
B.1.234e0.4
C.1.234e+4
D.1.234e0
点击查看答案&解析
相关试题
有以下程序:#include <stdlib.h>stru...
有以下程序struct S{int n;int a[2...
有以下程序main(int argc,char *argv...
以下程序企图把从终端输入的字符输出到名为...
以下程序中函数f( )的功能是将n个字符串...