Files
ostep-code/vm-intro/va.c
Remzi Arpaci-Dusseau acd67a3a42 nit
2019-05-19 17:22:43 -05:00

12 lines
249 B
C

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("location of code : %p\n", main);
printf("location of heap : %p\n", malloc(100e6));
int x = 3;
printf("location of stack: %p\n", &x);
return 0;
}