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