<分区>
Possible Duplicate:
what is the difference between const int*, const int * const, int const *
谁能给我解释一下这种类型?
char const * const blah;
我原以为它会写成这样:const char *
。 const post the type 是什么意思?例如int const foo
.
然后,第一句话是什么意思?
标签 c++
<分区>
Possible Duplicate:
what is the difference between const int*, const int * const, int const *
谁能给我解释一下这种类型?
char const * const blah;
我原以为它会写成这样:const char *
。 const post the type 是什么意思?例如int const foo
.
然后,第一句话是什么意思?
最佳答案
指向常量字符的常量指针。您不能更改它指向的地址,也不能更改它末尾的字符。
关于c++ - 这种类型到底是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9486593/