摘要: P70 5P72 7P74 函数指针P81 指针和句柄P83 this指针 阅读全文
posted @ 2014-08-18 00:48 Arigatou 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 两个指针相减,为两个指针之间间隔这两个指针类型的数目。如:int *p,*q;p-q=(p地址-q地址)/sizeof(int)#include int main(){ int a[9]={1,2,3,4,5,6,7,8,9}; char *p,*q; int *p2,*q2; ... 阅读全文
posted @ 2014-08-18 00:35 Arigatou 阅读(5746) 评论(0) 推荐(0) 编辑
摘要: 参考"http://blog.sina.com.cn/s/blog_63d4849c01014qg3.html"C语言内存分为5部分:堆、栈、全局(静态)区、常量区(只读)和代码区。堆,需要人工申请和释放内存,其他均为系统自动释放。全局(静态)区、常量区:全局可见!#include #include... 阅读全文
posted @ 2014-08-18 00:05 Arigatou 阅读(495) 评论(0) 推荐(0) 编辑