Q: Which of the functions is used to sort an array in descending order?
-
A
sort()
-
B
asort()
-
C
rsort()
-
D
dsort()
C
Answer:
C
Explanation:
sort() function is used to sort in ascending order where as rsort() meaning reverse sort is used for sorting in descending order.
Related Topic:
Share Above MCQ