please explain syntax i understood the starting point of container but how was the end point of container defined or derived
Reverse using STL
@chitranshanmol07 its syntax pass start and end point like sort(a,a+n) reverse(a,a+n );
you have to pass ending index n-1 +1 =n so a+n to do operation in whole.
i hope its cleared if yes dont forget to mark resolved 
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.