To clarify: in your program, &c_x does not point to a c-style string. cout starts with the address of c_x and prints out characters until a '\0' is found. Different compilers may allocate local storage in different ways; since it is not possible for us to know where the next '\0' is located, the result is undefined (that is, anything could happen).
If you run the code that I suggested and have any questions: just ask.
Dave
|