cpp add to array in main function code example Example: array as parameter c++ void myFunction(int param[]) { . . . }