Perhaps the most common idiom for achieving polymorphism in C stems from the rules that
any pointer can be implicitly cast to
void*
any pointer (including void*
) can be explicitly
cast into any other.
Discuss This Page: