单项选择题
下列程序的运行结果是( )。 #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,
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
已知char a;int b;float e;double d;则表达式a-b+c-d结果为( )型。
A.double
B.float
C.int
D.char
点击查看答案&解析
单项选择题
若执行下述程序时,若从键盘输入6和8,结果为( )。 main() {int a,b,s; scanf( %d%dt ,&a,&b); s=a: if(s=b) s*=s; printf( %d ,s); }
A.36
B.64
C.48
D.以上都不对
点击查看答案&解析
相关试题
以下程序的输出结果是______。 #de...
以下程序的运行结果是______。 #de...
本程序用冒泡法对数组a[]的元素从大到小...
以下程序调用函数swap将指针s和t所指单元(...
有以下程序: #include<stdio.h> #i...