2/8/00
COM1100 Winter2000 Yuhong Yin
5
How string stored?
n“Good Morning! “  is stored in memory like:
n
nThe string uses 14 storage locations, with the last character in the string being the end-of-string marker \0.
nThe double quotes are stored as part of the string.
nBut the actual size of this string is normally referred as 13.
n
\0
!
g
n
i
n
r
o
M
d
o
o
G