Declaring variables inside a switch statement?

You actually can declare variables within a switch if you do it according to the syntax of the language. You're getting an error because " case 0: " is a label, and in C it's illegal to have a declaration as the first statement after a label — note that the compiler expects an expression such as a method call, normal assignment, etc. (Bizarre though it may be, that's the rule.).

I've run into this issue before, and the conclusion was that you just put the code inside a block.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions