To make your life easy, just copy and paste the following into a shell:
echo '#include <stdio.h>
}' > test.c
Then run the folowing (again from the shell):
gcc test.c -o test
Again, if hello world in printed, then everything is working.
When you are done, get rid of these files by running: