A type does three things:
- It determines how much memory is needed for a data object.
- It determines how the bits in memory are interpreted. (A long and a float might use the same number of bits in memory, but they are translated into numeric values differently.)
- It determines what operations, or methods, can be performed using the data object.
See detail:<<C++ Primer Plus>> p507