Code prblm in selection sort

min index kaise find kar rhe hai…second wale for loop me min index kaise find ho ra hai…please help

please tell me,why your reply is not visible

please tell me,why your reply is not visible …

We initialize minindex with i before the second loop. In the second loop which starts from i+1th position till the end of the array, we find the minindex which is the index of minimum element which is less than the element at position i. This is done using line 12 and 13 of the code(using those conditions). Try to dry run with a case and you will understand it.