更新时间:2022-04-25 02:03:36
常量牛逼
和 T常量
是相同的。注意指针precedence,但是:
const T
and T const
are identical. Pay attention to pointer precedence, however:
字符常量*
是一个指向一个常量字符(阵列),而 char * const的
是一个常数指向一个可变的字符(阵列)。
char const*
is a pointer to a constant char (array), while char* const
is a constant pointer to a mutable char (array).