Experiment With C : <pre><code>#include&lt;stdio.h&gt;

int main() {
    int x = 99;
    printf("%d %d\n",1 &gt; scanf("%d",&amp;x) ? scanf("%d",&amp;x): scanf("%d",&amp;x),x);
}
</code></pre>

<p>So What is happening to the scanned values.
Lets say First Input is 11. so left most scanf is returning 1. So according to the rule the right most scanf will be executed. But The right most %d of printf is not printing the scanned value. It is showing 99.</p>
