What Is a Type?

A type does three things:orm

  • 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>> p507three

相關文章
相關標籤/搜索