0
Can anyone explain why the ELSE doesn't live inside the IF?
3 Respostas
0
Because it is another command after ic
0
The statements within IF are those which has to be executed when the conditions are met...
But since ELSE consists of statements which has to be executed on failure of that condition, it is placed outside of IF
0
Else are the list of statements which need to be executed when if condition is false .. If else is placed within the if and assume if condition fails it will never get a chance to execute else statements