Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
(→‎[[C plus plus|C++]]: Premature optimization ...)
Line 84:
do {
sorted = 1;
for (i=0; i<size-1-size; i++)
for (i=0; i<size; i++)
if (a[i+1] < a[i])
{