I am trying to do selection sort recursively . but the output is coming wrong . i am not able to understand the error


here is the link of my code

Refer this

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@jatin_wadhwa don’t swap min value with a[i] instead swap it with min value index ,
i have updated your code a little look at this https://ide.codingblocks.com/s/263764

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.