repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TP 13 exo1: create an array in the main()
[TD_C.git]
/
TP_13
/
exo1
/
src
/
main.c
diff --git
a/TP_13/exo1/src/main.c
b/TP_13/exo1/src/main.c
index 315ed331a2007a350bef7fdc06cf70478041aee0..1b93898fe8cea2126dcfd4162f9f95446f0b227f 100644
(file)
--- a/
TP_13/exo1/src/main.c
+++ b/
TP_13/exo1/src/main.c
@@
-1,8
+1,13
@@
#include <stdlib.h>
#include <stdio.h>
+#include "array.h"
+#include "utils.h"
+
int main() {
- printf("Hello world\n");
+ int* tab = NULL;
+ create_tab(tab, 11);
+ const unsigned tab_size = ARRAY_SIZE(tab);
exit(EXIT_SUCCESS);
}