标签: c
可能重复: const int = int const ? Const in C
喜
我想知道C中“int const *”的确切含义,以及嵌入式编程系统中“const int *”和“int const *”之间的小比较。
__卡努
答案 0 :(得分:5)
C中“int const *”的确切含义是什么?
它表示指向常量整数的指针。换句话说,指针不是常量,但它指向的值是。
还有“const int *”和“int const *”之间的小比较
还有“const int *”和“int const *”
没有区别。
类似的构造是int * const。这里是的区别。这次指针是常量,但它指向的值不是。
int * const