Skip to content
Snippets Groups Projects
Commit 7c14e3cd authored by yassin.elhakoun's avatar yassin.elhakoun
Browse files

Update allocation_dynamique.md (type de retour de initialize_to était déclaré...

Update allocation_dynamique.md (type de retour de initialize_to était déclaré comme uint32_t, mais retourne un tableau int32_t*)
parent bf72e886
No related branches found
No related tags found
No related merge requests found
Pipeline #27241 failed
......@@ -152,7 +152,7 @@ free(p); // ne pas oublier
. . .
```C
uint32_t initialize_to(size_t size, int32_t val) {
int32_t *initialize_to(size_t size, int32_t val) {
int32_t *p = malloc(size * sizeof(*p));
for (size_t i = 0; i < size; ++i) {
p[i] = val;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment