Casting cont.
There are cases where we have to declare pointers without prior knowledge about the type they will point to.
The type void * (pointer to void) is used as a generic pointer type.In a mixed type pointer expression, conversion is automatic.
However, casting is necessary when pointers are accessed.
Example:int j;double d, e;void * pt0 = &j, *pt1 = &d;e = *pt0 + *pt1;e = *((int *)pt0) + *((double*)pt1);