I'm new using Ubuntu OS, I've Ubuntu 12.04 and I'm trying to run a simple Hello world C program
#include <stdio.h>
int main(){
printf("Hello world!");
return 0;
}
When using gcc --version command at cmd, it returns 4.6.3 (I think that is the version), the problem is that when I try to use the command gcc helloworld.c in the address where the helloworld.c file is, it doesn't prompt anything, not the hello world! printing nor an error, the cmd just change line like if the enter key was pressed, but it appears that an a.out file were create by the command.
I've been working with python in the same way by using python file.py command and have no problem, what am I doing wrong?
Thanks for reading!