2013年4月27日
摘要: http://blog.csdn.net/chgaowei/article/details/53407961.1 变量存储域1.1.1 一个示例pang123hui首先提供了一个网上流传的学习代码示例:int a = 0; //全局区void main(){int b; //栈char s[] = “abc”; //s在栈,abc在文字常量区char *p1,*p2; //栈char *p3 = "123456"; //123456在常量区,p3在栈上static int c =0; //全局区p1 = (char *)malloc(10); //p1在栈,分配的10字节在 阅读全文
posted @ 2013-04-27 17:34 紫金树下 阅读(157) 评论(0) 推荐(0) 编辑