i didnt see the swap function…i tried to own swap function with parameters as a[i],a[min_index] …but it is showing the declarationa and syntax errors…
but when i try to a swap program with 1st for loop of i, it works fine, so please let me know how to write the swap function in this program without any errors