Selection sort code not working properly

the code which garima mam has provided is not working properly for me. In the output i am unable to sort the last element.https://ide.codingblocks.com/s/65544

Hii Himanshu,
You have made a mistake in for loop test condition, I have made the correction . You can check the correct code in below link:
https://ide.codingblocks.com/s/65581