单项选择题
下述程序的输出结果是( )。 #include<stdio.h> void main() {char a=1,b=2; char c=a^b<<2; printf("\n%d",c); }
A.9
B.10
C.12
D.2
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
假设有语句sizeof(double),则它是( )。
A.一个整型表达式
B.一个双精度浮点型表达式
C.一种函数调用
D.一种函数定义
点击查看答案&解析
单项选择题
下列程序的运行结果是( )。 #include<stdio.h> void fun(int*s,int*p) {static int t=3; *p=s[t]; t--; } void main() {int a[]={2,3,4,5},k,x; for(k=0;k<4;k++) {fun(a,&x); printf( %d, ,x); } }
A.5,4,3,2,
B.2,3,4,5,
C.2,2,2,2,
D.5,5,5,5,
点击查看答案&解析
相关试题
以下程序的输出结果是______。 #de...
以下程序的运行结果是______。 #de...
本程序用冒泡法对数组a[]的元素从大到小...
以下程序调用函数swap将指针s和t所指单元(...
有以下程序: #include<stdio.h> #i...