Create the helloworld.c source in Documents:
#include <stdio.h>
int main (void)
{
printf("Hello World!\n");
return 0;
}
Compile it with:
gcc helloworld.c -o helloworld
And run it with:
./helloworld
#include <stdio.h>
int main (void)
{
printf("Hello World!\n");
return 0;
}
gcc helloworld.c -o helloworld
./helloworld