static const

const,只读的全局变量,其值不可修改.
static,规定此全局变量只在当前模块(文件)中可见.
static const,既是只读的,又是只在当前模块中可见的.

 

int a=12;

const int * p;

posted @ 2015-07-09 10:13  谢小锋  阅读(155)  评论(0)    收藏  举报