16.07.2015, 17:33
Quote:
You are not including the space required for the null terminator, which results in stack overflow. The arrays "ABC" and "DEF" should each be 4 cells wide to hold a string of length 3 + null terminator.
On another note, don't write variable names in all caps. By convention, all caps is reserved for constants (#define and const). |