Why should use const variable other than #define?
The things you may consider are as followings:
- const variable obey the language’s scoping rules
- you can see const variable in the debugger
- you can take const variable address if you need to
- you can pass cosnt variable by const-reference if you need to
- they don’t create new “keywords” in your program.