In order to properly answer this question, you can use a simple rule. It is necessary to read the classified function argument from right to left:
int const * x // x is a pointer to a const int (can not change the value of the variable to which the pointer points // 1)
int * const y // y is a constant pointer to int (can not change the value of the pointer // 4)
Login in to like
Login in to comment