X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_13%2Fexo1%2Fsrc%2Fmain.c;h=41facd6323e042f6cfea518592381c27b4066826;hp=9f23749fbc3b2def57ca83457ac762d44e426e0a;hb=ba8488e5c6979a346c7a364affd31512142bac3d;hpb=c944d83b743f75264d017b47bc388962c51f2d3e diff --git a/TP_13/exo1/src/main.c b/TP_13/exo1/src/main.c index 9f23749..41facd6 100644 --- a/TP_13/exo1/src/main.c +++ b/TP_13/exo1/src/main.c @@ -7,19 +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); - printf("%d\n", tab_new_size); + printf("%d\n", tab_size); - display_array(tab, tab_new_size); + display_array(tab, tab_size); free_tab(tab); exit(EXIT_SUCCESS);