Introduction in C++

What is c++ ?

C++ is a high level computer programming language.

What is high level language and low level language?

High level language: High level languages are those languages that are easy to understand for human being. These languages are most nearest to the common human being languages. High level language code is called source code.

For example: C, C++, Java, COBOL etc

Low level language: Low level languages are those languages that are easy to understand for machine. Low level language code is called object code.

For example: Binary language(0,1).

What is computer programming language?

Computer programming language is a language that is understandable for a computer. For example all high level and low level languages including c++ are the computer programming languages.

What is computer program?

Computer program is a set of instruction written in any high level or low level language and this set of instruction is understandable for computer.

Note: Program, code, source code and object code all are just the instructions of any computer programming language.

Machine understands low level language and human beings understands high level languages more easily, so how these two kind of languages are compatible with each other?

We write our code in high level languages like c++ and then different translator software converts this high level code into low level  language code.

What are types of language translators?

  1. Compiler
  2. Interpreter
  3. Assembler

What is Compiler?

Compiler converts the high level language code into the object code as a whole.

What are advantages of the compiler?

  • Faster than interpreter
  • Produce the executable code

What are disadvantages of the compiler?

  • Code without any error is must to produce the executable file.

What is Interpreter?

Interpreter converts the high level language code into the object code statement by statement.

What are advantages of the Interpreter?

  • Easy to debug
  • Informs about the errors earlier

What are disadvantages of the Interpreter?

  • Slower than interpreter

What is Assembler?

Assembler converts the assembly  language code into the object code.

What are advantages of the Assembler?

  • More faster  because assembly language is nearest to the hardware and  binary language(machine language).
  • Code is easy to understand for machine as compared to the high level language code.

What are disadvantages of the Assembler?

  • Code is difficult to understand for human as compared to the high level languages.
  • More is needed to write for a little task.