Possible Duplicate:
What is the difference between const int*, const int * const, and int const *?
I am trying to understand how const
works in a function parameter. What is the difference between void function(int const *&i);
and void function(const int *&i);
? And I would appreciate if you gave an example of their implementation and of the usage of i
.