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
  • 11,417
  • 16
  • 54
  • 95

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
  • 72,145
  • 4
  • 50
  • 71