[Basic C++] 19 - Static and Const keywords in C++
2020. 7. 14.
The "static" and "const" keywords are fairly useful keywords when brought in the right place. When we create a variable in a certain scope, it only exists within the scope. On the other hand, a global variable is created at the beginning of a program and destroyed when the program ends. "static" keyword changes the behavior of a local variable to a global variable, thus, the static local variabl..