Examveda

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

Answer: Option A


Join The Discussion

Related Questions on C plus plus miscellaneous

What is the difference between '++i' and 'i++' in C++?

A. None of the above

B. They both have the same effect

C. '++i' increments the value of 'i' before returning it, while 'i++' increments the value of 'i' after returning it

D. '++i' increments the value of 'i' after returning it, while 'i++' increments the value of 'i' before returning it