Code:
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
Make a text file called helloworld.c with the above code. Type gcc helloworld.c. There should be no output. Now you should have a file called a.out in that directory and if you do a ./a.out it should say "Hello World" on the console. Does this work?