diff options
author | pommicket <pommicket@gmail.com> | 2022-02-19 19:46:02 -0800 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-02-19 19:46:02 -0800 |
commit | 0f97a589b800bdb71dda05984192f0f66a52edaa (patch) | |
tree | e51a495bc30a78e73c121ea414d8b2b99d5f2726 | |
parent | a8c884e6cd294942f1392908284808860e49fe54 (diff) |
actual hello world program
-rw-r--r-- | 05/main.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,15 +1,7 @@ #include <stdio.h> -#include <stdlib.h> int main(int argc, char **argv) { - printf("%p\n", malloc(1024*16)); - int *list = malloc(1024*4); - printf("%p \n",list); - list[1023] = 77; - list = realloc(list, 1024*64); - printf("%p \n",list); - printf("%d\n",list[1023]); - free(list); + printf("Hello, world!\n"); return 0; } |