1. 堆栈与堆的位置示意图
2. 发现你的系统中堆栈的大致位置
#include <stdio.h>
main()
{
int i;
printf("The stack top is near %p \n", &i);
return 0;
}
main()
{
int i;
printf("The stack top is near %p \n", &i);
return 0;
}
程序输出:
The stack top is near 0012FF7C
1. 堆栈与堆的位置示意图
2. 发现你的系统中堆栈的大致位置
程序输出:
The stack top is near 0012FF7C