Autosave: 2024-04-20 14:40:05
This commit is contained in:
parent
66c55e149d
commit
c21e92a1b6
2 changed files with 3 additions and 1 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
|
@ -29,6 +29,8 @@ data = malloc(512)
|
||||||
|
|
||||||
The first line assigns a special _pointer_ variable (indicated by `void *`
|
The first line assigns a special _pointer_ variable (indicated by `void *`
|
||||||
rather than `int` or `str`) . This is a variable only holds a memory address.
|
rather than `int` or `str`) . This is a variable only holds a memory address.
|
||||||
The `malloc` method assigns 512 bytes to the `data` variable.
|
The `malloc` method requests 512 bytes that it wants to assign to the `data`
|
||||||
|
variable. it will return the address of the first byte in the newly allocated
|
||||||
|
memory.
|
||||||
|
|
||||||
## Related notes
|
## Related notes
|
||||||
|
|
Loading…
Add table
Reference in a new issue