Reagarding swap function

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

you can use inbuilt or make your own. can you share your code so i can check. @bnikhilsai1998
share it through cb ide

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.