How the expression sort(s,s+n) is functioning. I am having difficulty understanding it.
Sorting of the array using sort function
Hello @sawsouravkr_f85fc786157b1e79,
The sort function is used to arrange elements in ascending order by default.
First parameter points to the initial element of the array/vector/string.
Second parameter points to the last element of the array/vector/string.
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.