C Program Structure

In C Program Structure, We will tell you that how program is Execute in C Language.

 

Executing a Program involves a series of steps:-

 Creating a Program

 Compiling a Program

  Linking the Program with functions that are need from C Library.

  Executing the Program.

  Creating a Program :-

Program should be written in C editor, like Turbo c++, Dev c++, Eclipse, Netbean id etc. The file name should contain .c extension. The user can also specify  her/her own extension.

   Compilation and Linking the Program :-

The Source program statement should be translated into object program which is suitable for execution by the computer. The translation by the computer. The translation is done after correcting each each statement. if there is no error , compilation proceeds and translated program is stored in another file with the same file name, with extension  “.obj”. If at all errors are there the Programmer should correct them.

  Linking :-

It is also an essential process. It puts all other program files and functions together that are required by the program.

For example :- if the Programmer is using pow() functions, then the object code of this function should be brought from <math.h> library of the System and Linked to the main() Program.

 

  Executing the Program :-

After the compilation, the executable object code will be loaded into the computer’s main memory and the program is executed.

 







Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top