题目内容

#include "stdio.h"void fun(int m);main(){ int w=5; fun(w);}void fun(int m){ if(m>0)fun(m-1);printf("%d ",m); }

A. 5 4 3 2 1
B. 0 1 2 3 4 5
C. 0
D. 5 4 3 2 1 0

查看答案
更多问题

#include "stdio.h"float fun(int x,int y){ return(x*y); }main(){ int a=2,b=5,c=8;printf("%.0f\n",fun((int)fun(a+b,c),a-b));}

A. -24
B. 24
C. -168
D. 168

凡是函数中未指定存储类别的局部变量,其隐含的存储类别是( )

A. auto
B. static
C. extern
D. register

以下程序的运行结果是_______.main(){incx();incy();incx();incy();incx();incy(); }incx(){int x=0;printf("%d",++x); }incy(){static int y=0;printf("%d",++y);

A. 111213
B. 112233
C. 111111
D. 112131

#include "stdio.h"int x=2;int fun(int p){ static int x=3;x+=p;printf("%d ",x);return (x); }void main(){ int y=3;printf("%d \n",fun(fun(x))); }

A. 5 10 20
B. 5 6 10
C. 5 10 10
D. 5 5 10

答案查题题库