New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Can I type -- switch ( int age = 36)?
A brief code
2 Answers
+ 4
no, you can't do that, the value need to be assigned before use inside switch and not assign inside switche
+ 1
Thanks a lot