0
Hi there! Can i place one more statement into switch?
i want to write program which tells zodiac
1 Antwort
+ 6
If you are referring to the expression that the switch evaluates then no it can't. But if you are referring to the statements inside the switch, then yes you can.
switch(expression, statement) //no can do
switch(expression)
case foo:
statement1
statement2
break
case bar:
statement1
statement2
statement3
break