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变量作为const char& ,为什么我不能接受 achar*作为const char *&?我想要做的是引用一个指针,我不会用它来更改它指向的数据,而是更改指针指向的位置。
char
const char
char*
const char *&