char arrays
Saaa
empty at needmail.com
Tue Jan 29 21:47:36 PST 2008
Please tell me I'm wrong or change the example .
>
> This example is wrong:
> char[] str; //str is not a string literal
> char[] str1 = "abc";
> str[0] = 'b'; // error, "abc" is read only, may crash
I should have posted this in learn yeah ;)
> char[4][5] c11=[`onee`,`twoo`,`thre`,`four`,`five`]; //string literals?
> char[][] c12=[`one`,`two`,`three`,`five`,`six`]; //string literals?
More information about the Digitalmars-d
mailing list