Function Pointer Question
Malte Vesper
malte.vesper at postgrad.manchester.ac.uk
Thu Apr 2 06:15:19 EDT 2015
Virtual functions are implemented on on the base of vtables, which in
turn are implemented using function pointers.
So it would be good to get a grasp on functionpointers (they exist in
C++ as well), also I believe this is not a C mailing list, take a look
at stackoverflow or a c/c++ site or book of your choice.
If you know how a pointer works, you will find it easy to understand how
a functionpointer works.
On 02/04/15 05:16, Nicholas Krause wrote:
> Greetings All,
> I'm a little rough with how function pointers work in C. I assumed there similar to way C++ stores virtual functions internally in the vtable for virtual functions by the compiler and checks the table at runtime. Please let me know if I'm wrong in my understanding.
> Thanks,
> Nick
>
More information about the Kernelnewbies
mailing list