+ 1

Dangling else is a problem that arises during use of else.....

I want answer that how it can be overhidden

21st Sep 2016, 12:22 PM
garima
garima - avatar
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.
22nd Sep 2016, 1:31 PM
Andres Mar
+ 1
Thanks
22nd Sep 2016, 3:15 PM
garima
garima - avatar