Computer Science, asked by pratulkmp, 6 months ago

define dangling else with example​

Answers

Answered by 2001roars
1
The dangling else is a problem in computer programming in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous. Formally, the reference context-free grammar of the language is ambiguous, meaning there is more than one correct parse tree.
Answered by meenuvbkailas
0

Answer:

Explanation:The dangling else is a problem in computer programming in which an optional else clause in an if–then(–else) statement results in nested conditionals being ambiguous. Formally, the reference context-free grammar of the language is ambiguous, meaning there is more than one correct parse tree.

pls mark me as brainliest

Similar questions