Q) to sort an unsorted arry of A[20] elements & find the element at post'n at A[4] & print the arry in assending order by quick | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Q) to sort an unsorted arry of A[20] elements & find the element at post'n at A[4] & print the arry in assending order by quick

Q) to sort an unsorted arry of A[20] elements and find the element at position A[4] and print the arry in assending order by using quick sort. (Data structure using c++ program)

20th May 2020, 6:18 AM
prakash
prakash - avatar
1 Réponse
+ 2
you need the header file <algorithm> then just use the sort() function. A.sort();
20th May 2020, 7:47 AM
Elizabeth Kelly
Elizabeth Kelly - avatar