what is bubble sort?
the name of this sorting process describes the way it works here the comparisions begin from the bottom most element and the smaller element bubble up towards the top. the value in the 5th element is compared against the value in the 4th element.
condition:- if the value in the 5th element is smaller then the value in the 4th values in th two elements are swapped.
Bubble sort program example in c
© 2016-2019, Codeverb.com - All Rights Reserved