Dead code: Difference between revisions

Content deleted Content added
WikitanvirBot (talk | contribs)
m r2.7.1) (Robot: Adding tr:Ölü kod
Example: Expanded
Line 7:
== Example ==
 
<source lang='cC'>
int foo (int xiX, int yiY)
{
int ziZ = x + yiX/iY;
 
return xiX*yiY;
}
</source>
 
In the above example, although the sum of <tt>xiX</tt> and <tt>yiY</tt> is computed butand never used, it will throw an exception when a divisiion by zero occurs. It is thus dead code and can be removed.
 
== Analysis ==