0
Can a switch statements case be a changing variable?
I know the answer is No but am I right?
2 Respuestas
+ 3
Yes, you cannot use non-const values in switch cases. Here is why: https://stackoverflow.com/questions/28760858/why-cant-we-use-variables-inside-a-case-in-switch-construct
+ 1
Thanks Bud. I did not know Switches were viewed as an array of pointers. I guess that's why it's so fast