0

Is the switch statement only for == ???

Is it possible to make a switch statement be <= or >= or should I just keep using the if statements?

28th Jun 2018, 1:21 AM
StormIncoming
4 odpowiedzi
+ 1
read this : https://www.geeksforgeeks.org/using-range-switch-case-cc/ tip: this is an extension of the GNU C compiler(also supported by clang and Intel C/C++) and not standard C or C++
28th Jun 2018, 1:46 AM
MO ELomari
MO ELomari - avatar
+ 1
Wait I think I get it case 1 . . . 5: means 1 through5 right?
28th Jun 2018, 1:54 AM
StormIncoming
+ 1
I understand now Thank you very much
28th Jun 2018, 1:59 AM
StormIncoming
0
Thanks but I do not understand a thing R.I.P
28th Jun 2018, 1:49 AM
StormIncoming