Can I use && in a switch statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can I use && in a switch statement?

25th Apr 2018, 9:49 AM
Dimitriy Yaroshchuk
3 Answers
+ 1
No, just constexprs like 5, enum_class::foo, '\n' and so on.
25th Apr 2018, 10:24 AM
Timon Paßlick
0
Why don't you try?
25th Apr 2018, 10:02 AM
Jonas Schröter
Jonas Schröter - avatar
0
Okay, thanks :)
25th Apr 2018, 2:45 PM
Dimitriy Yaroshchuk