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: return the dynamic array created or modified when necessary
[TD_C.git]
/
TP_13
/
exo1
/
lib
/
io.c
diff --git
a/TP_13/exo1/lib/io.c
b/TP_13/exo1/lib/io.c
index 4af0b66cf4ee147f16e177b9293329055298b466..2df513416d4358bf9965d32bf1e58e5f5d15352c 100644
(file)
--- a/
TP_13/exo1/lib/io.c
+++ b/
TP_13/exo1/lib/io.c
@@
-9,7
+9,9
@@
int prompt_value(const char* msg, int* result) {
}
void display_array(int* array, int size) {
}
void display_array(int* array, int size) {
+ printf("--array begin--\n");
for (int i = 0; i < size; i++) {
printf("value in array at index[%d]=%d\n", i, array[i]);
}
for (int i = 0; i < size; i++) {
printf("value in array at index[%d]=%d\n", i, array[i]);
}
+ printf("--array end--\n");
}
}