C++ examples for Data Type:Pointer
Cast void* to the correct type
int main() {/*from w w w . java2 s .c o m*/ int i = 99; void* vp = &i; *((int*)vp) = 3; }