靜態常量和常量有什麼區別? - What is the difference between static const and const?

問題:

What is the difference between static const and const ? static constconst什麼區別? For example:例如:

static const int a=5;
const int i=5;

Is there any difference between them?它們之間有什麼區別嗎? When would you use one over the other?你什麼時候會使用一個?


解決方案:

參考: https://stackoom.com/en/question/tKDP
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章