Is it safe to have an invalid operation in the second half of && in an if statement?
<p>Is this safe:</p>

<pre><code>if(sprite-&gt;numberOfSides !=0 &amp;&amp; sprite-&gt;value%sprite-&gt;numberOfSides!=0)
</code></pre>

<p>if sprite->numberOfSides can == 0?</p>

<p>The reason I ask, is if I frame the if statement like this:</p>

<pre><code>if(sprite-&gt;value%sprite-&gt;numberOfSides!=0 &amp;&amp; sprite-&gt;numberOfSides !=0)
</code></pre>

<p>I get an exception (because you can't n%0). Reversing it to the former statement works fine, but I don't want trouble down the road when compiling for different devices. </p>
