搬搬标准:
c++:
2.13.4 String literals
2.Whether all string literals are distinct (that is, are stored in nonoverlapping objects) is implementationdefined.The effect of attempting to modify a string literal is undefined.
c:
6.4.5 String literals
6 It is unspecified whether these arrays are distinct provided their elements have the
appropriate values. If the program attempts to modify such an array, the behavior is
undefined.