What is Dangling else problem


What is Dangling else problem

What is Dangling else problem ?

If  a matching ‘else’ with respect to an if statement or else if statement is not found in an if…else if…else block then the compiler chooses the nearest if for a match, resulting in anomalous execution of a C program.


2 comments:

Powered by Blogger.