Sorting algorithms/Bubble sort: Difference between revisions

Content deleted Content added
Ce (talk | contribs)
→‎{{header|C}}: Premature optimization is the root of all evil
Ce (talk | contribs)
→‎[[C plus plus|C++]]: Premature optimization ...
Line 109:
{
done = true ;
for( INDEX_TYPE i = 0 ; i < size-1 ; i++ )
--size;
for( INDEX_TYPE i = 0 ; i < size ; i++ )
{
if( array[i] > array[i+1] )