char
as if you would say the word "character" but stop after the first 'r', like 'care'.I'm german and I always pronounced it almost like "jar" |
(And if C had been written by Germans, rather than Anglophones, it would be "Datatypethatisasinglebytethatcanbeusedtorepresentanalphanumericcharacteroraninteger") |
Einzeltextzeichen ... although nobody uses it |
char
as "care" because it is short for "character", but almost everyone who doesn't think of that when they learn programming pronounces it like "charcoal" or "charred". A common joke using this misconception ischar izard;
kemort wrote: |
---|
http://www.stroustrup.com/bs_faq2.html#char |
This answer has always confused me, I don't understand how to pronounce "tchar" - is he just dodging the question? |
char
is for characters, e.g. human-readable text. You should never use one when you mean the other.
The fundamental storage unit in the C++ memory model is the byte. ... The sizeof operator yields the number of bytes in the object representation of its operand. ... sizeof(char), sizeof(signed char) and sizeof(unsigned char) are 1. -IS |
2.2 Basic Rules ... OCTET = <any 8-bit sequence of data> ... |
The unit byte is platform-dependent and has represented various storage sizes in the history of computing. However, due to the influence of several major computer architectures and product lines, the byte became overwhelmingly associated with 8 bits. This meaning of byte is codified in such standards as ISO/IEC 80000-13. While to most people today, byte and octet are synonymous, those working with certain legacy systems are careful to avoid ambiguity. - wiki |