Execution of C++ program


Execution of C++ program


C++ program executes in following 4 (four steps).

execution-flow
  1. Creating a program :
  2. An editor like notepad or wordpad is used to create a C++ program. This file contains a source code which consists of executable code. The file should be saved as '*.cpp' extension only. IDE(Integrated Development Environmet) can also be used to create
    C++ program for eg Turbo c.

  3. Compiling the program :
  4. 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.

  5. Linking a program to library :
  6. 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.

  7. Execution of program :
  8. The final executable file is then run by dos command prompt or by any other software.




     Prev                                                   NEXT

1 comments:

Anonymous said...

its very useful .thank you

Post a Comment