I am going over C and have a question regarding const usage with pointers. I understand the following code:
const
const char *someArray
From what is the difference between const int*, const int * const, int const *:
Read it backwards... int* - pointer to int int const * - pointer to const int int * const - const pointer to int int const * const - const pointer to const int
Read it backwards...
int* - pointer to int int const * - pointer to const int int * const - const pointer to int int const * const - const pointer to const int