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.
It is helpful
ReplyDeleteHelps a lot
ReplyDelete