Elsing statement is optional Statement true or false
Answers
Answered by
0
Answer:
No, It's not required to write the else part for the if statement. In fact most of the developers prefer and recommend to avoid the else block. This is purely a matter of style and clarity. It's easy to imagine if statements, particularly simple ones, for which an else would be quite superfluous.
Similar questions