when we pass an array to a function we pass it by address right! so all the changes done in function is actually change in the array. so why is it not working? i am not using a swap function which just makes the illusion of swapping . i am doing it with taking temp and storing it . but still there is no change in the array.
Selection sort (sorting)
At line 8 make it a[min].
1 Like