fix to get better heap location
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
printf("location of code : %p\n", main);
|
printf("location of code : %p\n", main);
|
||||||
printf("location of heap : %p\n", malloc(1));
|
printf("location of heap : %p\n", malloc(100000000));
|
||||||
int x = 3;
|
int x = 3;
|
||||||
printf("location of stack : %p\n", &x);
|
printf("location of stack: %p\n", &x);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user