Void Pointers
`void *` is a generic pointer to any object type.
Easy
malloc returns void *; memcpy takes void *. Cast to a real type before dereferencing; no arithmetic on void * in standard C.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.