[Solved] How does c++ think when accessing a function with arrays? [closed]


  1. int q1 (int x[], int &y, int z). You pass a(pointer to the beginning of the array) to q1, so x is a in function q1. In this sense, changing x is changing a.

  2. y++. Every iteration, y gets 1 more. So?

8

solved How does c++ think when accessing a function with arrays? [closed]