Why are all strings constant?

Apr 10, 2013 at 2:05am
I am very confused as to why all strings are always constant?

Can someone help me out please?
Apr 10, 2013 at 2:24am
You must be using Java, strings in C++ are mutable.

However, string literals (when you put quotes) are indeed constant, but they are not actual std::string instances.
Last edited on Apr 10, 2013 at 2:25am
Apr 10, 2013 at 2:30am
ok ty
Topic archived. No new replies allowed.