Skip to content
UPEEC

Void Pointers

`void *` is a generic pointer to any object type.

Easy
Comments 0

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.