Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下两个定义有什么区别:
char* str = "example";
和
const char* str = "example";
据我所知,在第一个定义中,str绑定到编译器为常量文字返回的地址位置。类似的是第二个定义的处理。
str