News
We are given an array and need to sort it in ascending and descending order. Methods for sorting of array in C, We will discuss various algorithms to sort the given input array. Sort the array in C ...
Method 1 : Using bubble sort Method 2 : Sort the entire array then, print first half in ascending and second half in descending. Example Input : arr [6] = [1, 90, 34, 89, 7, 9] Output : 1 7 9 90 89 34 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results