Selection sort test case not passed

answer:https://ide.codingblocks.com/#/s/25388
question:https://hack.codingblocks.com/contests/c/509/207
what’s problem in the code?

In this selection sorting you are not swapping the numbers.
Your code gives the same array as output as given in input.

You can use following pseudocode, to understand and implement this code again.

https://ide.codingblocks.com/#/s/24401