How to define swap function

i guess in your code you dont define swap function it gives error while running

hi @shivansh2633_325a8cde6e2dea44
Swap is a inbuilt function… use algorithm header file for the same…

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.

the code that you explain for selection sort gives error while running can you provide me correct code for the same

Refer this -->