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?
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?
The first two are equivalent (the int is const), in the third it's the pointer that's const (i.e. the parameter itself).