title: Eclipse-Photon Ternary Operator Compiling Error
body: <p>The function should compare two integers and print the relation on the screen
  althogh,the <em>ternary operator</em> is right in syntax and already running on visual studio IDE it gives me an error in eclipse when compiled with gcc: </p>
  
  <pre><code>error: lvalue required as left operand of assignment
       (x == y) ? c = 61 : (x &gt; y) ? c = 62 : c = 60;
                                                ^
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void _1_6(const int x, const int y)
  {
      char c = '\0';
      (x == y) ? c = 61 : (x &gt; y) ? c = 62 : c = 60;
      printf("%d%c%d", x, c, y);
  }
  
  int main(void)
  {
      _1_6(1, 3);
  }
  </code></pre>