why u have called a + n here i don’t understand the meaning of that how it will work.
Regarding inbuilt sort
hello @ssmit_joshi
first argument of inbuilt function takes starting address (address from where we want to sort) thats why we pass a in first argument.
second argument of inbuilt function takes ending address (basically address next to last element of array which is a+n ) thats why we pass a+n in second argument.
here a+n line i am still not able to understand pls help me with these
pls send me code of descending order , i have done ascending so pls send descending
pass greater< int > () as third param of sort function.and it will sort in descending order
STILL IT IS DOING IN ASCENDING ORDER ONLY NOT IN DESCENDING
share ur code using cb ide
check now->
still i m doing in dev c++ it is showing it not declared
try in cb ide , if it works there then the issue is with ur ide.
try updating it
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.