这可能是一个简单的问题,但为什么 const char* 不需要指向的内存地址?
例子:
const char* a = "Anthony";
并不是:
const char *a = // Address to const char
像其他类型一样吗?
c c++ c-strings string-literals implicit-conversion
c ×1
c++ ×1
c-strings ×1
implicit-conversion ×1
string-literals ×1