title: How does ternary operator use 3 operands?
body: <p>Ternary operators look like this</p>
  
  <pre><code>m = (a &gt; b) ? a : b;
  </code></pre>
  
  <p>My teacher says that ternary operators use 3 operands</p>
  
  <p>which here are <code>m</code>, <code>a</code> and <code>b</code>... 
  even if <code>m</code> is actually the variable where we store the data...</p>
  
  <p>But when we are writing</p>
  
  <pre><code>m = a + b;
  </code></pre>
  
  <p>Here as well we are writing <code>m</code> as the storing variable so why isn't this a ternary statement?</p>