Vidyalelo
C++ Programming · Q3

Standard Template Library (STL) in C++

Programming · C++ Programming · question 3

Q3

What is the purpose of the 'std::sort' function in C++ STL?

A.
To sort elements of a container
Answer
B.
To search for an element in a container
C.
To insert elements into a container
D.
To remove elements from a container

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board