akb825 Wrote:Note that if you use the last method, it won't be NULL terminated, so anything you do with the string using anything that assumes it's a standard C string will likely crash.

wouldnt adding that fix that then? like this:

Code:

char[] = {'h', 'w', 'w', '\0'};

oh and, if you do this:

Code:

char[] = {"h", "w", "w"};

Since the compiler "thinks" they are all strings, every character will be automaticly NULL terminated, so you'd be trying to put 3 strings in a char array, while you wanted to put 3 ascii characters in a char array.
As usual with programming, it's the little things that make the difference