Char (C++)
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo | name = char (C++) | formattype = electronic | subcat = Data types | subcat2 = C++ data types | subcat3 = | subcat4 =...") |
(released) |
||
(One intermediate revision by one user not shown) | |||
Line 16: | Line 16: | ||
| uniform type = | | uniform type = | ||
| conforms to = | | conforms to = | ||
− | | released = | + | | released = 1983 |
| image = C++ char.png | | image = C++ char.png | ||
| caption = Using char | | caption = Using char | ||
Line 26: | Line 26: | ||
Character constant must use single quotes and it is considered to be enumerable (thus you can use characters in constructs like '''switch'''). | Character constant must use single quotes and it is considered to be enumerable (thus you can use characters in constructs like '''switch'''). | ||
− | ==Other C++ | + | ==Other C++ data types of the same size== |
* [[signed char]] | * [[signed char]] | ||
* [[unsigned char]] | * [[unsigned char]] |
Latest revision as of 07:04, 13 May 2015
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).