0

以下两个定义有什么区别:

char* str = "example";

const char* str = "example";

据我所知,在第一个定义中,str绑定到编译器为常量文字返回的地址位置。类似的是第二个定义的处理。

4

0 回答 0