4void echange(
int* pi,
int* pj )
11void aleatoire(
int* debut,
int* fin )
13 for ( ; debut != fin; ++debut )
14 *debut = rand() % 100;
17void affiche(
int* debut,
int* fin )
19 for ( ; debut != fin; ++debut )
20 printf(
" %d", *debut );
25void tri(
int* debut,
int* fin )
27 for ( ; debut != fin-1; ++debut )
28 for (
int* bulle = fin-1; bulle != debut; ++bulle )
29 if ( *bulle < *(bulle-1) )
30 echange( bulle, bulle-1 );