...
| Code Block | ||
|---|---|---|
| ||
int x = 1;
if (x == 1){
return x;
x += 1; // Code here is unreachable, never executed
} |
Any code The statement following the return statement will never get executed thus created errors and bugs in the program which rely on that statement.
Compliant Solution
In this compliant solution with reachable code.
...