Modify the elements of the array


Discussion:

Simple sort

for (i=0;i

for (j=i+1;j

if (a[i]>a[j]

swap(&a[i],&a[j]);

then modify it so that all the elements of the array are printed softer each pass of the outer loop

7 3 66 3 -5 22 -77 2

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Modify the elements of the array
Reference No:- TGS01931925

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)