Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→{{header|C}}: constant
(→{{header|C}}: main(void)) |
(→{{header|C}}: constant) |
||
Line 226:
=={{header|C}}==
<lang c>void bubble_sort(int *a, const int n) {
int i, j, t=1;
for (i = n - 1; i && t; i--) {
Line 240:
int main(void) {
int a[] = {4, 65, 2, -31, 0, 99, 2, 83, 782, 1};
return 0;
|