How does c++ works

Photo by Ilya Pavlov on Unsplash

How does c++ works

How does it all work?

1. You must tell the computer EXACTLY what to do

  • Program is Like a recipe if you miss one everything is waste

2. Programming language

  • source code

  • high level (human understandale code ie low level 101010)

  • for human

3.Editor -used to enter program text

  • .cpp and .h files for c++

4.Binary or other low-level representation

  • object code
  • For computers (10101010)

5.Compiler -translate from higlevel to low level

  • Compiler is a program takes source code and gives object code
  • If source code is error no object code is produced
  • create executable program
  • it's work is to take our object code and link it with other code which is stored in form of library by other coder and reusing codes
  • it makes code to run better and relaiable

7.Testing and Debugging

  • Finding bugs and resolving for stability of code