单选题:After execute the following program, which one of the following
After execute the following program, which one of the following option will be printed on screen?
```
void fun(int);
main( )
{
int w=2;
fun(w);
}
void fun(int k)
{ if (k>0) fun(k-1);
printf(“%d”,k);
}
```
@[B](1)
A. 210
B. 012
C. 0
D. 201
A.210
B.012
C.0
D.201
答案:B
```
void fun(int);
main( )
{
int w=2;
fun(w);
}
void fun(int k)
{ if (k>0) fun(k-1);
printf(“%d”,k);
}
```
@[B](1)
A. 210
B. 012
C. 0
D. 201
A.210
B.012
C.0
D.201
答案:B