C中“int const *”的确切含义是什么?

时间:2010-10-09 19:47:38

标签: c

  

可能重复:
  const int = int const ?
  Const in C

我想知道C中“int const *”的确切含义,以及嵌入式编程系统中“const int *”和“int const *”之间的小比较。

__卡努

1 个答案:

答案 0 :(得分:5)

  

C中“int const *”的确切含义是什么?

它表示指向常量整数的指针。换句话说,指针不是常量,但它指向的值是。

  

还有“const int *”和“int const *”

之间的小比较

没有区别。

类似的构造是int * const。这里的区别。这次指针是常量,但它指向的值不是。