+ 1
Dangling else is a problem that arises during use of else.....
I want answer that how it can be overhidden
2 Answers
+ 1
Always use { } , even in cases where there's only one statement. And remenber that in doubt, the else goes with the last if that came before.
+ 1
Thanks