Saibabaa Pragada wrote:Hi, What is this logic/concept/feature called here ? The first statement after if condition is "dead Code". Second statement maybe "Dead Code" or "Unreachable code" as given below..What is happening here ?
I am pretty sure that if you follow the links in this topic, you'll get an explanation.... but here it is anyway.
The specification actually has relaxed rules for the "if" statement, in regards to the check for unreachability. The relaxed rules states that the compiler should not assume that the path is taken or not taken, even though it can be determined at compile time. The reason for this is to allow for debugging /
test flags.
Henry