passing a 1D array to a function in c++ code example Example: array as parameter c++ void myFunction(int param[]) { . . . }