diff --git a/introc/c_memory_model.tex b/introc/c_memory_model.tex index 27bfb4f..1aa195d 100644 --- a/introc/c_memory_model.tex +++ b/introc/c_memory_model.tex @@ -146,7 +146,7 @@ \subsubsection{String literals are constant} strcpy(ptr, "Will not work"); \end{lstlisting} -String literals are character arrays stored in the code segment of the program, which is immutable. +String literals are character arrays stored in the read-only data segment of the program, which is immutable. Two string literals may share the same space in memory. An example follows.