Selection Sort [Array Pass By Reference]

Here the array has been passed to a function by reference.

If I don’t want my main array to be changed. Is it possible to pass an array by value?

hi @tasfikrahman007 you cant pass an array by value. It is always passed by reference. So you can either make a copy yourself and pass that, or you can use a vector instead of array