compiler error in constant integer pointer

// compiler error.
// p is a pointer to a "constant integer." but this code tried to change
the value of
// the "constant integer."