Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
前两个是等价的(int 是 const),第三个是 const 的指针(即参数本身)。