这些输出语句中 【 】会报错
A: double d =4.5;
B: double d = 3;
C: int i = 2.3;
D: int i =3;
A: double d =4.5;
B: double d = 3;
C: int i = 2.3;
D: int i =3;
举一反三
- 以下语句中()会报错 A: double d = 2.3; B: float d = 3; C: int a = 2.3 D: int a = 3;
- 若有语句int a=1,b; double y=2.3; b=(int)y; 则b的值为( ) A: 3 B: 2 C: 1 D: 3
- 以下程序执行后的输出为: #include double f1(double x) { return 1.0/x;} double f2(double x) { return x*x;} int main() { int i=3; double (*f[2])(double)={f1,f2}; cout<
- 3、以下代码段执行后,输出结果是________。int i = 3; int j = 0; double k = 3.2; if(i < k) if(i == j) System.out.println(i); else System.out.println(j); else System.out.println(k);
- 下面语句中哪些是合法的数组声明_____ A: double<br/>d[30]; B: string<br/>a[10]; C: int<br/>i[] = (3,4,5,6) D: float<br/>f[] = {2.3 , 4.5, 5.6}