string literals

Saaa empty at needmail.com
Fri Jan 25 19:08:39 PST 2008


from the 1.0 documentation:

char[] str;
char[] str1 = "abc";
str[0] = 'b';        // error, "abc" is read only, may crash

Is this example correct?




More information about the Digitalmars-d-learn mailing list