Compiling your first C program
Having successfully entered and saved your hello1.c
file, it is now time to compile it:
- In a Terminal, command-line, or console window (depending on your OS), with the current working directory the same as your
hello1.c
file, enter$ cc hello1.c
. - Once this is done and you have a new command-line prompt, verify that you have a file named
a.out
.
You have completed your first compiling phase of the program development cycle.