CPants
Showing posts with label
Generic
.
Show all posts
Showing posts with label
Generic
.
Show all posts
Friday, April 5, 2013
The Generic Pointer Type : void *
Any pointer maybe converted to type
void *
without loss of any information. Typical use of
void *
appears in function parameter type definitions ( so the function can receive pointers of arbitrary type: e.g
void *memcpy(void *s, const char *t)
;)
(Think of void pointers as java Object)
Older Posts
Home
Subscribe to:
Posts (Atom)