previous | start | next

Strings

Two kinds of strings:

C strings are just ordinary arrays of char, with the last char being the character with all bits 0. This can be represented using single quotes as '\0', but not '0'. The '0' is the character for the digit 0.

Here are the 8 bit patterns for each character:

character 8 bit Representation decimal integer value
'\0' 0000 0000 0
'0' 0011 0000 48
'1' 0011 0001 49
'2' 0011 0010 50


previous | start | next