#include <stdio.h>
main()
{
printf(“Hello World!\n”);
}
Then save the file by pressing CTRL+O
Leave the file name as is, and then hit Enter.
Exit the file window by pressing CTRL+X.
This is what it should look like:
Entering the command
gcc gcctest.c
If no error messages are returned then you have successfully compiled your script.
type the command
./a.out
Your “Hello World!” message should be returned on the following line.
For Additional help you may wish to refer to the links below: