Assume that list consists of the following elements. What is the result after the first pass of the bubble sort algorithm?

Assume the list is to be sorted in ascending order

int list[] = {12, 34, 25, 56, 46, 73, 10, 5, 16, 891 12 25 34 46 56 10 S 16 73 89}

a. 89 73 56 46 34 25 16
b. 10 5 12 12 34 25 56 46
c. 73 10 5 16 89 5 56 34 25
d. 73 46 89 10 12 16



Answer :

Other Questions