C++ program to arrange the elements of a given array in ascending or descending order? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C++ program to arrange the elements of a given array in ascending or descending order?

27th Jan 2021, 7:58 AM
Preethi
Preethi - avatar
2 Answers
+ 2
Yes you can do that using bubble sort ,insertion sort, selection sort and other sorting techniques.
27th Jan 2021, 8:01 AM
Abhay
Abhay - avatar
0
Yes you can use sorting techniques like insertion sort bubble ..... Or you can use STL lib
27th Jan 2021, 8:47 AM
A S Raghuvanshi
A S Raghuvanshi - avatar