Step 21What does this program do? Program 7-1On every sweep it goes all the way through the array, but the top elements are
already in the correct position. Change it so that the top limit of each sweep
reduces by one each time. You will need to use another variable. |
|
|
| Index: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| g: | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 |
| h: | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 | a0 |