const char*
<br /><br />char const* p2="Mary";<br /><br /><br /> <br /><br />p2 is a pointer to a constant "Mary"<br />p2 can change to point to another constant string, but you can't change the value "May" thru p2.<br /><br />p1 is a constant pointer to "John"<br />p
复制链接