Execution of C Program :
C program executes in following 4 (four steps).

C program executes in following 4 (four steps).
- Creating a program :
An editor like “Turbo C 4.5 or Borland or Dev C++” is used to create a C program. This file contains a source code which consists of executable code. The file should be saved as '*.c' extension only.
- Compiling the program :
The next step is to compile the program. The code is compiled by using compiler. Compiler converts executable code to binary code i.e. object code.
- Linking a program to library :
The object code of a program is linked with libraries that are needed for execution of a program. The linker is used to link the program with libraries. It creates a file with '*.exe' extension.
- Execution of program :
The final executable file is then run by dos command prompt or by any other software.
Written by ":Shojib"
Written by ":Shojib"
No comments:
Post a Comment