C Program to Sort an Array in Ascending Order
Sorting an array in ascending order means arranging the elements from smallest element to largest element. In this article, we will learn how to sort an array in ascending order in a C program. Examples Input: arr = {170, 45, 75, 90, 802, 24, 2, 66}Output: arr = {2, 24, 45, 66, 75, 90, 170, 802}Explanation: The array is sorted from the smallest to