You might create your own source file using a text editor or someone might give you a source file to use on your computer.
Compilation is the process of converting the source file into object code .
The object code is the binary computer code for the computer you're going to run the program on. Linking is the process of combining a file or files containing object code and producing an executable program. The executable program is written to a file. During the linking process, mathematical functions you called are combined with your program. A single command is used to compile and link a program to produce an executable file.