Try out an STL algorithm using sort (). Be sure to # include . Sort an array

Question:

Try out an STL algorithm using sort (). Be sure to # include . Sort an array of integers. Keep in mind that many containers have sorting mechanisms built in, but native collection types, such as a language-supplied array, will not (which is why you should use a basic array of integers).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer: