"Note, that inside the function, array is a pointer to the array, not the array itself." . . . . .