Hi,
Wanna check is there any reachable code in the following?
Switch (temp)
{
case '1':
....
break;
case '2':
{
if (condition true)
{
...
}
else
{
...
}
break;
}
default:
break;
}
Is the if else statement not recognised by the compiler, that it will deem it as unreachable code?
Thank you.
The if would only be unreachable if temp was a bool or there was an unconditional return before the switch.