Ericsson Interview Question

How to mimic virtual function calls in C?