标签:int void hello 初始化 amp 技术 strcpy 初始 code
#include<stdio.h> int a; int b=0; void main() { int c; int *p=(int *)malloc(4); char *q="hello world!!"; //strcpy(q,"good"); printf("未初始化静态区: %p\n",&a); printf(" 初始化静态区: %p\n",&b); printf(" 栈区: %p\n",&c); printf(" 代码区: %p\n",&main); printf(" : %p\n",&q); printf(" 堆区: %p\n",&p); }
运行结果如下
标签:int void hello 初始化 amp 技术 strcpy 初始 code
原文地址:https://www.cnblogs.com/anSn/p/11687370.html