Abouut the swap function

i know the swap functionality, but how did sir just wrote a function call of the swap…without mentioning the function definition(code) or importing the function

@bnikhilsai1998 every thing is fine with code sir wrote!

no swap function call is written!, logic is simply to shift the greater elements and write current element at proper position.

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.