TP 11 exo1: deconstify where appropriate
[TD_C.git] / TP_13 / exo1 / src / main.c
index 658930e3c75be49a87ef13a9735a653c8576941d..41facd6323e042f6cfea518592381c27b4066826 100644 (file)
@@ -7,17 +7,19 @@
 
 int main() {
     int* tab = NULL;
-    const unsigned tab_size = 11;
+    unsigned tab_size = 11;
     tab = create_tab(tab, tab_size);
 
     printf("%d\n", tab_size);
 
     display_array(tab, tab_size);
 
-    const unsigned tab_new_size = 20;
-    tab = resize_tab(tab, tab_new_size);
+    tab_size = 20;
+    tab = resize_tab(tab, tab_size);
 
-    display_array(tab, tab_new_size);
+    printf("%d\n", tab_size);
+
+    display_array(tab, tab_size);
 
     free_tab(tab);
     exit(EXIT_SUCCESS);