int bubblePass(int V[], int n) { int i ; int swappedCount = 0 ; for (i=0; i < n-1; ++i) { if (V[i] > V[i+1]) { int tmpSwapVar; tmpSwapVar = V[i] ; V[i] = V[i+1] ; V[i+1] = tmpSwapVar ; swappedCount++ ; } } return swappedCount ; }