Why does b get the value 100? : <p><strong>This is on C:</strong></p>

<pre><code>#include &lt;stdio.h&gt;

int main()
{
    int a=100,b;
    b= (a&gt;100)?a++:a--;
    printf("%d %d\n",a,b);
}
</code></pre>

<p>b assigned the value 100 but when trying </p>

<pre><code>int main()
{
    int a=100,b;
    b= (a&gt;100)
    printf("%d %d\n",a,b);
}
</code></pre>

<p>b prints the value 1 as it returns true.
why is it different when using '?:' operator?</p>
