5 steps to make C Program – Basics of C++ Programming

5 steps to make C Program

5 steps to make C Program – There are a total of 5 steps required to make C Program. All of these steps are explained below:

1. Creating the source program:

The first step to make a C program is to create, edit and debug the source program. The program written in a high level language is called source program. It is created from the Text Editor. In C, the source program can be created from the edit window of Turbo C++. You can open it by clicking on File > New from the menu bar.

2. Saving the source program:

The next step of making a C program is to save the source program. The program has to be stored somewhere in the disk. The program is saved in the form of text with the extension “.C”. If you’re using the Turbo C++, then to save the program, either go to File > Save or press F2 key. The Turbo C++ saves the program in “.CPP” extension by default which stands for C Plus Plus. The default name with which it is saved is NONAME00.CPP.

3. Compiling the source program:

The third step of making a C program is to compile what you’ve made. By compiling, we mean the conversion of source program into machine program. The program which is used for this purpose is known as compiler. Machine program is called the object program and it is saved with the extension “.obj”. Before the compiler compiles, it first looks and detects if there is any error present in the source program. In Turbo C++, the source program is compiled by clicking Compile > Compile. This action can also be completed by pressing Alt + F9 keys. If there are any errors such as syntax errors are present, the IDE of Turbo C++ will show them at the bottom screen. All errors must be removed before compilation, otherwise the source program is not compiled.

4. Linking the program:

The second last step is to link the object program with library files. There are some files in the compiler which have predefined functions, these are known as library files or runtime libraries. This step provides the executable file with “.exe” extension upon successful linking. This is done by going to Compile > Link.

5. Executing the program:

For the execution of the program, it must be loaded into the computer memory. In Turbo C++ IDE, this can be done by going to Run > Run or by pressing the keys Ctrl+F9. Then the output can be seen on the user screen, which is accessed by first going to Windows then to User screen or by pressing the keys Alt+F5.


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL and ETC cryptocurrencies. I love to blog here and write for Tribune in my free time.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: