-
int q1 (int x[], int &y, int z)
. You passa
(pointer to the beginning of the array) toq1
, sox
isa
in functionq1
. In this sense, changingx
is changinga
. -
y++
. Every iteration,y
gets1
more. So?
8
solved How does c++ think when accessing a function with arrays? [closed]