C++ is a statically typed, compiled, general-purpose, case-sensitive, irregular programming language that supports procedural programming, object-oriented programming and generic programming.

C++ is considered a mid-level language that combines the features of high-level and low-level languages.

C++ was designed and developed by Bjarne Stroustrup in 1979 at Bell Laboratories in Murray Hill, New Jersey. C++ further extended and improved the C language, originally named C with classes and later renamed C++ in 1983.

C++ is a superset of C. In fact, any legal C program is a legal C++ program.

C++ variable types syntax

A variable is actually just the name of a storage area that the program can operate on. Each variable in C++ has a specified type. The type determines the size and layout of variable storage. Values within this range can be stored in memory, and operators can be applied to variables.

Variable names can consist of letters, numbers, and underscore characters. It must start with a letter or underscore. Uppercase letters and lowercase letters are different because C++ is case-sensitive.

C++ variable types example

int i, j, k; char c, ch; float f, salary; double d;