From 0f97a589b800bdb71dda05984192f0f66a52edaa Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 19 Feb 2022 19:46:02 -0800 Subject: actual hello world program --- 05/main.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/05/main.c b/05/main.c index 8d91650..b0575cd 100644 --- a/05/main.c +++ b/05/main.c @@ -1,15 +1,7 @@ #include -#include 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; } -- cgit v1.2.3