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
1 merge request!59Update cours_12.md (list n'était pas modifié en dehors de la fonction)
......@@ -477,8 +477,7 @@ sorted_list sorted_list_push(sorted_list list, int val) {
element *tmp = malloc(sizeof(*tmp));
tmp->data = val;
tmp->next = list;
list = tmp;
return list;
return tmp;
}
}
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment