#include #include int main(int argc, char *argv[]) { int i; i = 1; // okay const int cI = 1; // value of cI1 cannot be changed cI = 2; // error int * pI = &i; // both pI and *pI can be modified *pI = 2; // okay pI = &cI; // error (warning) const int * pCI = &cI; // value of *pCI cannot be changed *pCI = 2; // error pCI = &i; // okay int * const cPI = &i; // value of cPI cannot be changed cPI = &i; // error const int * const cPcI = &cI; // neither ccPI nor *ccPI can be changed cPcI = &cI; // error *cPcI = 3; // error return EXIT_SUCCESS; }