总结:这个跟计算机语言类别和编译器有关,本文是在linux环境下说明的.
分两种情况:
1. C语言:
2. C++语言:
/*! * \Description:
* \author scictor <scictor@gmail.com> * \date 3 */ #include <stdio.h> const int g_i = 100;// 常量数据区,只读,指针修改导致程序Segmentation fault.const
string myglobal(
"global"
); //