I'm just starting with C. I'm trying to compile the below code and execute it, but I get an error.
Also running size
shows nothing in BS or data stacks?
#include<stdio.h>
/* test.c: My first C program on a Linux */
int main(void)
{
printf("Hello! This is a test prgoram.\n");
return 0;
}
Compiling works:
gcc -c test.c -o test
Executing:
bash: ./test: cannot execute binary file: Exec format error
Size:
text data bss dec hex filename
108 0 0 108 6c test