Explore BrainMass

Write a Program in C That Implements A Simple Sort

Simple sort
for (i=0;i<SIZE;++i>
for (j=i+1;j<SIZE;++j)
if (a[i]>a[j]
then modify it so that all the elements of the array are printed sfter each pass of the outer loop
7 3 66 3 -5 22 -77 2

© BrainMass Inc. brainmass.com June 19, 2018, 6:28 am ad1c9bdddf

Solution Preview

The solution:
Please note that you have to update the array length for any new array you enter. Or you can do it dynamically from user, but that is beyond the scope of this problem.
Hope it ...