Apparently C doesn't like the declaration:
char some_array[n] = "Text here"; <== where n is an int of suitable size....
Well, actually, I guess it likes it just fine, but the output surprises me! Here's an example.
char two[4] = "What";
printf("2: %s \n", two);
Output is:
2: WhatWhat
WhatWhat the heck is WhatWhat doing there?!
So I try adding:
char test[4] = "abcd";
Output is:
2: WhatWhatabcd
3: abcd
Yeah, I get it, my syntax isn't favored. But why?! And what is going on with the actual variables?