> For the complete documentation index, see [llms.txt](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abhyas-kanaujia.gitbook.io/lb-dsa-notes-and-homework-abhyas/18-static-and-dynamic-allocation/homework/why-use-void-pointer.md).

# Why use void pointer?

Void pointer is a general purpose pointer that can be used to point to data of any type. It is used when working with `malloc()`.&#x20;
