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)
1 ответ
+ 2
you need the header file <algorithm>
then just use the sort() function.
A.sort();