单项选择题
下面能正确定义数组,并正确赋值的语句是_______。
A.int N=5,b
B.int a[1][2]={{1},{3}}
C.int c[2][]={{1,2},{3,4}}
D.int d[3][2]={{1,2},{34}}
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列选项中不能正确定义结构体的是_______。
A.typedef struct
B.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;
C.struct color
D.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;
点击查看答案&解析
单项选择题
设变量x为float型且已经赋值,则以下语句中能够将x中的数值保留到小数点后面两位,并将第三位四舍五入的是_______。
A.x=x*l00+0.5/100.0
B.x=(x*100+5)/100
C.x=(in(x*100+0.5)/100.0
D.x=(x/100+0.5)*100.0
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> main...
运行以下程序后,如果从键盘上输入china#...
C语言中下列叙述正确的是_______。
下列程序段中,不是死循环的是_______。
软件生命周期中所花费用最多的阶段是___...