1void* gp; //generic pointer
2int* ip; //int pointer
3char* cp; //char pointer
4
5gp = ip; //legal conversion
6ip = static_cast<int*>(gp); //explicit cast required
7 //in C++ but not in C
8cp = ip; //illegal conversion
9*ip = 15; //legal dereference of pointer to int
10*ip = *gp; //illegal generic pointer dereference
11