摘要: int a,b; int * const p1 =&a; //p1为指针常量 int const *p2 =&b; //p2为常量指针 识别常量指针与指针常量,记住下面三句话: 指针(*)与常量(const)谁在前先读谁; 指针(*)在前(int *const p1=&a)表示指针不能变,不能指向其 阅读全文
posted @ 2016-02-23 16:31 勤奋的下里巴人 阅读(536) 评论(0) 推荐(0) 编辑