if condition on array
<p>if i have      </p>

<pre><code>int win[][] ={{1,2,3},{4,5,6},{7,8,9},{1,4,7},{2,5,8},{3,6,9},{1,5,9},{3,5,7}};
</code></pre>

<p>Can I put condition in this way?  </p>

<pre><code>if(((win[0][0]) &amp;&amp; (win[0][1]) &amp;&amp; (win[0][2]))||

            ((win[1][0]) &amp;&amp; (win[1][1]) &amp;&amp; (win[1][2]))||   

            ((win[2][0]) &amp;&amp; (win[2][1]) &amp;&amp; (win[2][2]))||

            ((win[3][0]) &amp;&amp; (win[3][1]) &amp;&amp; (win[3][2]))||

            ((win[4][0]) &amp;&amp; (win[4][1]) &amp;&amp; (win[4][2]))||

            ((win[5][0]) &amp;&amp; (win[5][1]) &amp;&amp; (win[5][2]))||

            ((win[6][0]) &amp;&amp; (win[6][1]) &amp;&amp; (win[6][2]))||

            ((win[7][0]) &amp;&amp; (win[7][1]) &amp;&amp; (win[7][2]))||

            ((win[8][0]) &amp;&amp; (win[8][1]) &amp;&amp; win[8][2]))) 
</code></pre>
