summaryrefslogtreecommitdiff
path: root/05
diff options
context:
space:
mode:
Diffstat (limited to '05')
-rw-r--r--05/main.c10
1 files changed, 1 insertions, 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 <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;
}