C程序栈内存堆内存的地址
#include <stdio.h> #include <malloc.h> int main() { char * p1, * p2; p1=(char *)malloc(2); p2=(char *)malloc(2); printf("&p1=%#X p1=%#X\n", &p1, p1); printf("&p2=%#X p2=%#X\n", &p2, p2); return 0; }
本文来自博客园,作者:一支小白,转载请注明原文链接:https://www.cnblogs.com/startnow/p/7490853.html