declaration and initialization in switch statement