title: warning: left-hand operand of comma has no effect in g++ compiler
body: <pre><code>int a, b, i=10, j=20; 
  a = (i,j); 
  b = i,j ;` 
  </code></pre>
  
  <p>When I compile the above
  program in linux (g++) I am getting warnings at line number 2:</p>
  
  <blockquote>
    <p>left-hand operand of comma has no effect)</p>
  </blockquote>
  
  <p>and line number 3</p>
  
  <blockquote>
    <p>(right-hand operand of    comma    has no effect).</p>
  </blockquote>
  
  <p>I do not understand what is wrong.</p>