forked from nothke/intro-to-zig-talk
Initial
This commit is contained in:
9
c/malloc.c
Normal file
9
c/malloc.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
int main() {
|
||||
int* ptr = malloc(sizeof(int));
|
||||
|
||||
*ptr = 4;
|
||||
|
||||
free(ptr);
|
||||
}
|
Reference in New Issue
Block a user