The grammar for a switch statement in C is the following:
selection-statement:
switch ( expression ) statement
labeled-statement:
case constant-expression : statement
default : statement
Therefore, you can only use constant expressions as "case value". Constant expression is not the same as constant variable. In other words - sorry, but you cannot do that.