0
void func1 (const int *);
void func2 (int const *);
void func3 (int * const);

Which two signatures are equivalent? If none of them are, can you please explain the subtle differences?

4

1 回答 1

2

前两个是等价的(int 是 const),第三个是 const 的指针(即参数本身)。

于 2013-10-07T16:04:18.707 回答