- Every variable needs to have a type associated with it.
- Types allow the compiler to -
- Know how much memory a variable needs.
- Types of values that can be stored in the variable.
- Operations that can be performed on a variable.
C++ has two broad classes of typing -
- Fundamental Types - these are built into the compiler.
- Derived Types - also called compound types.