posted 14 years ago
Both are different, Unreachable code : the source code of a program which can never be executed because there exists no control flow path to the code from the rest of the program, and Dead code : the source code of a program which is executed but whose result is never used in any other computation. So, for an example, the below code is an unreachable code,
You can see a unreachable statement in the above code.
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|