Examveda

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

A. sorts the elements before the middle element in ascending order and remaining elements are left without any specific order

B. sorts the elements before the middle element in descending order and remaining elements are left without any specific order

C. sorts the elements after the middle element in ascending order and remaining elements are left without any specific order

D. sorts the elements after the middle element in descending order and remaining elements are left without any specific order

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