char (C++)

From Just Solve the File Format Problem
Revision as of 07:04, 13 May 2015 by VolodyA! V Anarhist (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
File Format
Name char (C++)
Released 1983

Using char

Using char

C++ char is guaranteed to use exactly 1 byte of memory and it stores a single ASCII character, although storage of a part of the multipart character is also possible under specific conditions.

Character constant must use single quotes and it is considered to be enumerable (thus you can use characters in constructs like switch).

Other C++ data types of the same size

Other C++ data types storing symbols

  • char16_t no less than 16 bits, no less than char
  • char32_t no less than 32 bits, no less than char16_t
  • wchar_t whatever the largest block of addressable memory happens to be on the system
Personal tools