X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=TP_13%2Fexo1%2Fsrc%2Fmain.c;h=ea4abc39e67b739c04fcba45a5f142a0f2a31491;hb=cfdd46d2e85b05f77a03ae31f721e2fd4030996f;hp=658930e3c75be49a87ef13a9735a653c8576941d;hpb=34f864c6720b5e480db66430a218e2fd54743ce7;p=TD_C.git diff --git a/TP_13/exo1/src/main.c b/TP_13/exo1/src/main.c index 658930e..ea4abc3 100644 --- a/TP_13/exo1/src/main.c +++ b/TP_13/exo1/src/main.c @@ -7,17 +7,17 @@ int main() { int* tab = NULL; - const unsigned tab_size = 11; - tab = create_tab(tab, tab_size); + unsigned tab_size = 0; + + tab = prompt_array(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); + sort_tab(tab, tab_size, ascending_and_odd); - display_array(tab, tab_new_size); + display_array(tab, tab_size); free_tab(tab); exit(EXIT_SUCCESS);