Void pointer

Missing image
Merge_articles.png


It has been proposed that this article or section be merged with C programming language.

This request may be discussed on the article's talk page.

A void pointer is a pointer that points to an object of unknown type. Void pointers are commonly used in programming languages like C, and may be typecast into pointers pointing to objects of a specific data type. Void pointers are commonly used to allocate memory to blocks of data.

A void pointer can point to an arbitary number of bytes. You cannot dereference it without casting it to a specific pointer type. This also means that pointer arithmetic cannot be performed on a void pointer, since the size of the pointed-to object is not known.

Missing image
Synaptic.png


 This software-related article is a stub. You can help Wikipedia by expanding it.

See also: Void pointer, C programming language, Computer software, Data, Data type, Memory allocation, Pointer