X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP2%2Fexo1%2Fexo1.c;h=25d6c99922febc0c77a97c4a241a3892fc642f50;hb=6eb444361c150978f48c0ede53c828576b4ea161;hp=27ff6b997cac7b421d1469885d74ac7378acef2d;hpb=98c13508cc8b56de85366d4da5a1c676eeeb96a0;p=Algorithmic_C.git diff --git a/TP2/exo1/exo1.c b/TP2/exo1/exo1.c index 27ff6b9..25d6c99 100644 --- a/TP2/exo1/exo1.c +++ b/TP2/exo1/exo1.c @@ -1,6 +1,6 @@ #include -void permuter (int T[], int n, int i1, int i2) { +void permuter (int T[], int i1, int i2) { int tmp = T[i1]; T[i1] = T[i2]; T[i2] = tmp; @@ -20,7 +20,7 @@ void SelecEch(int T[], int n) { int imin, d = 0; while (d < n-1) { imin = i_min(T, n, d); - permuter(T, n, d, imin); + permuter(T, d, imin); d++; } }