TP 13 exo1: implement odd and even elements counting with callbacks
[TD_C.git] / TP_13 / exo1 / lib / io.c
index 989e746aa237cd90d18c0b3861427deefd5f1bf2..7639410116edf56925481f8501b24fc0ff29c963 100644 (file)
@@ -28,7 +28,9 @@ void display_choice_menu() {
     printf("2) Trier le tableau.\n");
     printf("3) Afficher le tableau.\n");
     printf("4) Compter le nombre d'occurence d'un entier dans le tableau.\n");
-    printf("5) Quitter.\n");
+    printf("5) Compter le nombre d'entiers pairs dans le tableau.\n");
+    printf("6) Compter le nombre d'entiers impairs dans le tableau.\n");
+    printf("7) Quitter.\n");
 }
 
 int* do_concat(int array[], unsigned* size) {
@@ -77,6 +79,7 @@ void do_sort(int array[], unsigned size) {
             criteria = ascending_and_odd;
             break;
         default:
+            /* sort ascending by default, unused code path */
             criteria = ascending;
             break;
     }