You can use nullptr or a pointer to the const global array to indicate the default value:
void myFunction(int myArray[] = nullptr ) {
This is because int myArray[] has a type adjusted to an int* pointer when used as a function parameter.
source share