c system function gets before other strings : <p>i am trying to write a simple c program that prints the C compiler version. so i wrote:</p>

<pre><code>#include &lt;stdio.h&gt;
int main() {
    printf("you have %d", system("gcc --version");
}
</code></pre>

<p>the output:</p>

<pre><code>gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

you have compiler 0
</code></pre>

<p>any idea?</p>
