Sail E0 Webinar
Question
Which of the functions is used to sort an array in descending order?
Options:
A .  sort()
B .  asort()
C .  rsort()
D .  dsort()
Answer: Option C


sort() function is used to sort in ascending order where as rsort() meaning reverse sort is used for sorting in descending order.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers