if we want to change the elements of the array by function we have to pass the array by reference so the way as I know is something like that void function(int*&
void function(int*&