sync: 2026-11-09 17:00
This commit is contained in:
1 parent
3829142dc0
commit
cc05fbe797
1 file changed
+10
@@ -978,4 +978,14 @@ Ex:
|
|||||||
int* p = (int*) malloc(10*sizeof(int));
|
int* p = (int*) malloc(10*sizeof(int));
|
||||||
```
|
```
|
||||||
|
|
||||||
|
>malloc renvoie NULL en cas d'échec.
|
||||||
|
|
||||||
|
la fonction `free` libère un espace du tas.
|
||||||
|
|
||||||
|
Ex:
|
||||||
|
```c
|
||||||
|
free(p);
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user