我对 c++ 如何读取以下内容感到困惑,我不明白它如何访问函数以及它如何输出 4 3 2 1 0;
int q1 (int x[], int &y, int z){
for (int i = z; i >= 0; i--){
x[i] = y++;
}
z += 1;
return z - 2;
}
int main (void) {
int b = 0, c = 4, d;
int a[5] = {0};
d = q1(a, b, c);
for (int i = 0; i <= c; i++){
cout << a[i] << " ";
}
cout << endl;