当前位置: X题卡 > 所有题目 > 题目详情

有如下程序: void main( ) float x=2.0,y; if(x<0.0) y=0.0; else if(x<10.0) y=1.0/x; else y=1.0; pri...

查看本题答案

你可能感兴趣的试题

0.000000  0.250000  0.500000  1.000000  
0.000000  0.250000  0.500000  1.000000  
语句①②③都有二义性  语句①③有二义性,②没有二义性  语句①有二义性,②③没有二义性  语句①②有二义性,③没有二义性  
0.000000  0.250000  0.500000  1.000000  
0.000000  0.250000  0.500000  1.000000  
void swap (float *p, float * { float *t ,a; t = &a; t = p; *p = *q; *q = *t; } void main () { float x = 8.0;y = 9.0; swap (&x, &; cout<<x<<", "<<y<<end1; }  void swap (float *p, float * { float a; a = *p; *p = *q; *q = a; } void main() { float x = 8.0;y = 9.0; swap (&x, &; cout<<x<<", "<<y<<end1; }  void swap (float *p, float * { float x; x = *p; *p = *q; *q = x; } void main() { float a,; *a = 8.0;*b = 9.0; swap (a, ; cout<<x<<", "<<y<<end1; }  void swap (float &p, float & { float a; a = p; p = q; q = a; } void main() { float a = 8.0,b = 9.0; swap (a,; cout<<x<<", "<<y<<end1; }  
语句①②③都有二义性  语句①③有二义性,②没有二义性  语句①有二义性,②③没有二义性  语句①②有二义性,③没有二义性  
0.000000  0.250000  0.500000  1.000000  
0.000000  0.250000  0.500000  1.000000  

热门试题

更多