Because a C string is a built-in array of characters, we can access individual characters in a string directly with array subscript notation. For example, in the preceding declaration, color[0]
is the character 'b'
, color[2]
is 'u'
and color[4]
is the null character.