W
WaterWalk
Hi. Today when I was writing some code fragment, I suddently noticed
that string literals are usually not modifiable. But why can it be
assigned to a variable of type "char *"? I searched the comp.lan.c faq,
and found the answer in Q1.32(http://c-faq.com/decl/strlitinit.html).
I want to learn more about this subject, then I checked the references,
among which is "ISO Sec. 6.1.4, Sec. 6.5.7 ". I downloaded n1124(C99
with TC1, TC2 draft). But I can't find such topics as the type of
string literal in those sections. Where are they then? Thanks for your
help.
that string literals are usually not modifiable. But why can it be
assigned to a variable of type "char *"? I searched the comp.lan.c faq,
and found the answer in Q1.32(http://c-faq.com/decl/strlitinit.html).
I want to learn more about this subject, then I checked the references,
among which is "ISO Sec. 6.1.4, Sec. 6.5.7 ". I downloaded n1124(C99
with TC1, TC2 draft). But I can't find such topics as the type of
string literal in those sections. Where are they then? Thanks for your
help.