C++ create a function and pass array as parameter code example Example: array as parameter c++ void myFunction(int param[]) { . . . }