2080 10

CSC115 ยท 2080 ยท 5 marks

Write a program to initialize an array of dimension 10 and sort the numbers within the array in ascending order.

Write a program to initialize an array of dimension 10 and sort the numbers within the array in ascending order. [5]

C ProgrammingChapter 6: ArraysInitialization of array

The program initializes an array of dimension 10, reads values from the user, and sorts them in ascending order using Bubble Sort. Bubble Sort Logic: Compare adjacent elements; if the left element is greater than the right, swap them. Repeat for n-1 passes. --- --- --- Step Description ----------...