摘要: 如果const位于星号的左侧,则const就是用来修饰指针所指向的变量,即指针指向为常量;如果const位于星号的 右侧,const就是修饰指针本身,即指针本身是常量。1 int b = 500;2 const int* c = &b;3 int const *d... 阅读全文
posted @ 2014-03-17 21:53 keep_running 阅读(381) 评论(0) 推荐(0)