Dead code: Difference between revisions

Content deleted Content added
Other definitions are used as well - notably by the FAA.
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 7:
== Example ==
 
<sourcesyntaxhighlight lang='C'>
int foo (int iX, int iY)
{
Line 14:
return iX*iY;
}
</syntaxhighlight>
</source>
 
In the above example, although the division of <tt>iX</tt> by <tt>iY</tt> is computed and never used, it will throw an exception when a division by zero occurs. Therefore, the removal of the dead code may change the output of the program.