aren’t we required to make a swap function?or is this the way of directly swapping that is used in this program like swap(a,b) and we will get swapped values !?
Selection sorting
Hi @aditi2512201012019 , the swap function used here is the built in function in the c++ stl (standard template library) and can be used directly as it is already defined in the stl . So, you can either define your swap function or just use the predefined swap function
to know more about the stl swap function u can read this article
In case of any doubt feel free to ask 
if you got your answer mark your doubt as resolved