My C program fails to run with `cannot execute binary file: Exec format error`
<p>I'm just starting with C. I'm trying to compile the below code and execute it, but I get an error.</p>

<p>Also running <code>size</code> shows nothing in BS or data stacks?</p>

<pre><code>#include&lt;stdio.h&gt;
/* test.c:  My first C program on a Linux */
int main(void)
{
 printf("Hello! This is a test prgoram.\n");
 return 0;
}
</code></pre>

<p>Compiling works:</p>

<pre><code>gcc -c test.c -o test
</code></pre>

<p>Executing:</p>

<pre><code>bash: ./test: cannot execute binary file: Exec format error
</code></pre>

<p>Size:</p>

<pre><code>  text     data     bss     dec     hex filename
    108       0       0     108      6c test
</code></pre>