Inbuilt Sort C++ STL

At 1:29, bhaiya says starting point of the array is the starting address of the array. I didn’t get that. Please explain.

hello @yajurkhurana
The first parameter of sort takes starting address .i,e address from where onwards we want to sort
in case of array , if we want to sort the array starting from the first element then in that case we need to pass the address of first element which is a (its the base address).

1 Like

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.