•Strings
–Arrays of
characters
–All strings
end with the null character, '\0'
–Examples
•char string1[] =
"hello";
–Null character implicitly added
–-string1 has 6 elements
–- char
string1[]={'h','e','l','l','o','\0’};
–Subscripting
is the same
–String1[ 0 ] is 'h'
–string1[ 2 ] is 'l'