I read this but I did not really get what I searched for.
Why can I do this:
char duder[] = "duder";
When I cannot do this:
const char dusder[] = "dusder";
char nondusder[] = dusder;
So AFAIK the literals create constant unnamed array and why can't you then initialize an array to another array yourself if that is technically what is happening when doing char duder[] = "duder";
?
Also, how can duder
modify the string literal if it is constant?
If (even though I did search for this but did not find the answer to my question) there is a source that answers my questions, I would of course appreciate a link just as much as an answer :)