A pointer to a function can be converted to type void *, if type void * is large enough to hold that pointer.
Microsoft Specific
In medium-model 16-bit target compilations, the data pointer size is 2 bytes, and the code pointer size is 4 bytes. Therefore, a pointer to type voidis too small to hold a pointer to a function.¨