单项选择题
有以下程序:#iaclude <stdio.h>main( ){ intp[8] :{11,12,13,14,15,16,17,18},i=0,j:0; while(i++<7) if(p[i]%2) j+ =p[i]; printf( "%'d \n" ,j);}程序运行后的输出结果是( )。
A.42
B.45
C.56
D.60
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序:#include <stdio.h>#define P 3void F(int x) { return(P* x* x); tmain( ){ printf( % d n ,F(3 + 5) ); }程序运行后的输出结果是( )。
A.192
B.29
C.25
D.编译出错
点击查看答案&解析
单项选择题
若有以下说明和定义: union dt { int a; char b; double c;} data; 以下叙述中错误的是( )。
A.data的每个成员起始地址都相同
B.变量data所占的内存字节数与成员c所占字节数相等
C.程序段:data=5; printf("%f\n",dat;输出结果为5.000000
D.data可以作为函数的实参
点击查看答案&解析
相关试题
有以下程序: #include<stdio.h> voi...
有以下程序:#include <stdio.h>int ...
有以下程序:#include <stdio.h>void...
有以下程序: #include <stdio.h> m...
有以下程序: #include <stdio.h> m...