title: max of two integers using ternary operator in C
body: <p>Is there a better way to return the max of two integers using the ternary operator in C?</p>
  
  <p>This is what I have for now</p>
  
  <pre><code>int max(int a, int b)
  {
   int big = 0;
   big = (a&gt;b)?a:b;
  
   return big;
  }
  </code></pre>
  
  <p>But I wanted to write it something like this</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
   printf("%d\n",fun(5,4));
  
   return 0;
  }
  
  int fun(int a, int b)
  {
   (a&gt;b)?(return a:return b);
  }
  </code></pre>
  
  <p>But it gives me an error</p>