Passing Arrays to Function in C++
The syntaxes and are exactly the same as when in a function parameter list (I left out the optional names). Additionally, an array name decays to a pointer to the first element when passed to a function (and not passed by reference) so both int firstarray[3] and int secondarray[5] decay to int*s. It also happens … Read more