Intel Corporation Interview Question

Implement bubble sort

Interview Answer

Anonymous

Aug 8, 2012

void Bubble_Sort (my_class *arr, int size) { int i,j; for (i =0; i arr[j+1]) swap (arr[j], arr[j+1]); } }