Files
ostep-code/vm-intro/va.c
Remzi Arpaci-Dusseau b8fad52c5c vm-intro basic code
2018-08-15 12:20:03 -05:00

12 lines
248 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(1));
int x = 3;
printf("location of stack : %p\n", &x);
return 0;
}