you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 2 years ago (1 child)

I think you've got it backwards. I learned to read pointer decls from right-to-left, so const int * is a (mutable) pointer to an int which is const while int *const is a const pointer to a (mutable) int.

  • source
  • parent
  • hideshow 2 child comments