Uploaded November 2014 | Updated September 2026, 2 weeks ago
Today we'll look at the basics of a very interesting mechanism: Function Pointers!
They're very useful for callbacks and event driven programming. Today we'll only cover the basics, a description of what they are, their syntax and how to use them.
This topic is a confusing one, but I don't think it needs to be. The trick is knowing what machine code is, and how it is represented in the computer. Machine code is just an array of bytes in RAM, exactly the same as data. A function pointer is a variable that holds the address of a function so we can jump the CPU there and execute the function indirectly.
The most difficult thing about function pointers is their strange syntax in C++.
I've tried to explain things from a slightly different angle. If you've had trouble understanding what function actually are, then I hope this vid helps.
FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435
Today we'll look at the basics of a very interesting mechanism: Function Pointers!
They're very useful for callbacks and event driven programming. Today we'll only cover the basics, a description of what they are, their syntax and how to use them.
This topic is a confusing one, but I don't think it needs to be. The trick is knowing what machine code is, and how it is represented in the computer. Machine code is just an array of bytes in RAM, exactly the same as data. A function pointer is a variable that holds the address of a function so we can jump the CPU there and execute the function indirectly.
The most difficult thing about function pointers is their strange syntax in C++.
I've tried to explain things from a slightly different angle. If you've had trouble understanding what function actually are, then I hope this vid helps.
FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435


