•String
assignment
–Character
array
•char color[] = "blue";
–Creates
5 element char array color last element is '\0'
–Variable
of type char *
•char *colorPtr = "blue";
–Creates
pointer colorPtr to
letter b in string “blue”
»“blue” somewhere in memory
–Alternative
for character array
•char color[] = { ‘b’, ‘l’, ‘u’, ‘e’, ‘\0’ };