1 void BubbleSort(int arr[], int szie) 2 3 { 4 5 for (int i = 0; i < size - 1; i++) { 6 7 for (int j = 0; j < size - 1 - i; j++) { 8 9 if (arr[j] > arr[j + 1]) { 10 11 int tmp = arr[j + 1]; 12 13 arr[j + 1] = arr[j ]; 14 15 arr[j] = tmp; 16 17 } 18 19 } 20 21 } 22 23 return; 24 25 }