C Programming Tutorial -Execution of a C program
a. Creating a program
The program must be entered or stored into a file. The file is created with the help of text editor. Any correction in programs are done under the editing. When the editing is over, the file is saved on the disk. The file consists of letters, digits and special characters followed by a dot and a letter 'c'. The program that is entered into the file is known as source program or source code. Sinc, it represents the original form of the program.
b. Compiling a program
The source program instructions are translated into a form i.e. suitable for execution by the computer. After examining each instructions about its correctness the translation is done. If everything is alright, the compilation proceeds silently and the translated program is stored in another file with the name with extension 'o' which is known as object 'o'.
c. Linking the program
Linking is the process of putting together other program files and functions that are required by the program. The program will be linked with functions that are needed from the C - library.
d. Executing a program
While executing a program, the program may request for some data to be entered through the keyboard. For the wrong program logic or data , the program may not produc the desired result for which source program or data should be corrected. In case the source program is modified, the entire process of compiling, linking and executing should be repeated.
Comments
Post a Comment