Dead code: Difference between revisions

Content deleted Content added
Example
Tags: Reverted Mobile edit Mobile web edit
Reverting edit(s) by 201.162.227.111 (talk) to rev. 1239272187 by Es20490446e: Vandalism (RW 16.1)
 
Line 13:
 
return iX*iY;
}
</syntaxhighlight>
 
In the above example, although the division of {{mono|iX}} by {{mono|iY}} is computed and never used, it will throw an exception when a division by zero occurs. Therefore, the removal of the dead cocode may change the output of the program.
 
In the above example, although the division of {{mono|iX}} by {{mono|iY}} is computed and never used, it will throw an exception when a division by zero occurs. Therefore, the removal of the dead co.
 
== Analysis ==