Hello to everyone! My first post, so be gentle.
Here I have two snippets: first should be avoided (unpredictable behavior), second should be fine. I do not understand why is it so. (I have some knowledge of assembly (language) and computer architecture.)
Second snippet:Code:char *k; strcpy(k, "ABCD");
Code:char *k; k = "ABCD";