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?

Zak
  • 12,213
  • 21
  • 59
  • 105

1 Answers1

2

The first two are equivalent (the int is const), in the third it's the pointer that's const (i.e. the parameter itself).

john
  • 85,011
  • 4
  • 57
  • 81