English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

About or related at computer science thesis.

2006-12-14 19:37:37 · 2 answers · asked by Spider C 1 in Computers & Internet Software

2 answers

space navigation
image processing

2006-12-14 19:47:44 · answer #1 · answered by THE MAN 3 · 0 0

//simplest sort application, gnomesort, in C

void gnomesort(int n, int ar[]) {
int i = 0;

while (i < n) {
if (i == 0 || ar[i-1] <= ar[i]) i++;
else {int tmp = ar[i]; ar[i] = ar[i-1]; ar[--i] = tmp;}
}
}

2006-12-14 20:10:11 · answer #2 · answered by charlyvvvvv 3 · 0 0

fedest.com, questions and answers