-->
当前位置:首页 > 题库

单选题:Determine the displaying of the following program:

Luz5年前 (2021-05-10)题库763
Determine the displaying of the following program:
```
#include
void sub(int s[], int y)
{
static int t=3;
y=s[t];
t--;
}
int main()
{
int a[]= {1, 2, 3, 4}, i, x=0;
for(i=0; i<4; i++)
{
sub(a, x);
printf("%d ", x);
}
printf("\n");
return 0;
}
```
@[C](1)

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



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


答案:C