0
can we have default statement in if and else ?
4 Answers
0
No
To use default is just for switch case statements as far as I know .
0
If you think about it, the "else" part of the statement is the default.
0
Oh yes I see
- 1
nope, we have if else if structure, in the end just use final else. serving as default mode
but I ve never tried to check it out, let's see if it works