static const和之间有什么区别const?例如:
static const int a=5;
const int i=5;
Run Code Online (Sandbox Code Playgroud)
它们之间有什么区别吗?你什么时候用一个而不是另一个?
变量的const限定如何在C和C++中有所不同?
"提出这个问题的原因是这个答案:https://stackoverflow.com/questions/4024318#4024417其中他声明const"just"在C中意味着只读.我认为所有const都意味着,无论它是C还是C++.他是什么意思?"