What is Programming Language?
A programming language is a formal language used to communicate instructions to a computer. It provides a set of rules and syntax for writing programs that computers can understand and execute.
Source Code (.cpp/.c) → Preprocessing (.i) → Compilation (.s) → Assembly (.o/.obj) → Linking → Executable (.exe)
| High Level Language | Low Level Language |
|---|---|
| Human-readable syntax | Machine-oriented syntax |
| Platform independent | Platform dependent |
| Easy to write and debug | Difficult to write and debug |
| Portable | Less portable |
| High abstraction | Low abstraction |
| Generally higher abstraction overhead | Closer to hardware, minimal abstraction |
| Examples: C++, Java, Python | Examples: Assembly, Machine Code |
C++ is a general-purpose programming language that supports object-oriented, procedural, and generic programming. It's an extension of C language with additional features like classes, objects, inheritance, and polymorphism.
Bjarne Stroustrup created C++ at Bell Labs in 1979. Initially called "C with Classes."
C++ is often described as a multi-paradigm language that supports both high-level abstractions and low-level memory control.It combines features of both high-level and low-level languages. It provides high-level abstractions while allowing low-level memory manipulation.