intro-to-zig-talk/c/malloc.c

9 lines
102 B
C
Raw Permalink Normal View History

2024-08-08 18:39:18 +00:00
#include <stdlib.h>
int main() {
int* ptr = malloc(sizeof(int));
*ptr = 4;
free(ptr);
}