DO NOT MISS

Ads

Sunday, 26 June 2016

Executing a C Programming


Executing a ‘C’ program:-

Executing a program written in ‘C’ involves series of steps.

They are
1. Creating a program
2. Compiling a program
3. Linking the program with functions that are needed from ‘C’ library.
4. Executing the program

Creating a program:-
The program must be entered into a file. The file name can consists of letters, digits and special char’s fallowed by a. “.” & a letter c or cpp. The file is creating with the help of ‘C’. editor.

Compiling a program:-
The same program instruction is now translated into a form that is suitable for execution by the computer. The translation is done after examing each instruction for its corrections. It every thing is all right, the compilation proceeds silently and the translated program is stored on another file with the name “file name.obj”.

Linking and execution:-
Linking is the process of putting together other program files and functions that are required by the program.

For example:-
It the program is using squrt( ), then the object code of this function should be brought from the math library of the system & linked to main program & it stored automatically in another file named “ filename.exe”.

__________________________________________________________________________________

__________________________________________________________________________________

Greataims

 
Copyright © 2016 Computersadda. Designed by @ Computersadda Team - Published By Greataims