actual hello world program
This commit is contained in:
parent
a8c884e6cd
commit
0f97a589b8
1 changed files with 1 additions and 9 deletions
10
05/main.c
10
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue