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

Update cours_12.md (list n'était pas modifié en dehors de la fonction)

parent 092079ff
No related branches found
No related tags found
No related merge requests found
Pipeline #27314 failed
...@@ -477,8 +477,7 @@ sorted_list sorted_list_push(sorted_list list, int val) { ...@@ -477,8 +477,7 @@ sorted_list sorted_list_push(sorted_list list, int val) {
element *tmp = malloc(sizeof(*tmp)); element *tmp = malloc(sizeof(*tmp));
tmp->data = val; tmp->data = val;
tmp->next = list; tmp->next = list;
list = tmp; return tmp;
return list;
} }
} }
``` ```
......
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