What is the property of stable sort function provided by the STL algorithm?

a) sorts the elements of a sequence in ascending order preserving the relative order of equivalent elements
b) sorts the elements of a sequence in descending order preserving the relative order of equivalent elements
c) arranges the sequence randomly preserving the relative order of equivalent elements
d) same as sort function of STL algorithm

1 thought on “What is the property of stable sort function provided by the STL algorithm?”

  1. a
    Explanation: stable sort is used to sort the elements of a sequence also preserving the relative order of the equivalent elements.

Leave a Comment