Stackoverflow topics about const vs #define in C/C++:
-
http://stackoverflow.com/questions/1674032/static-const-vs-define-vs-enum
-
http://stackoverflow.com/questions/1637332/static-const-vs-define
Below an example of switch statement used with const variables in C and C++.
C: