An integer character constant has type int.
The value of an integer character constant containing a single character that maps to a single-byte execution character is the numerical value of the representation of the mapped character interpreted as an integer.
The value of an integer character constant containing more than one character (e.g., 'ab'), or containing a character or escape sequence that does not map to a single-byte execution character,
therefore they got the size of int
let 'AB' ==> if you are using little endien ===> char c = 'AB' mapped to 'B' ( due to character hold only one Byte Memory )
'\0' |
'\0' |
'A' |
'B' |
103 |
102 |
101 |
100 |
if you are using big endien ===> char c = 'AB' mapped to '\0' ( due to character hold only one Byte Memory )
'\0' |
'\0' |
'A' |
'B' |
100 |
101 |
102 |
103 |