News

In the first part of this series, we covered the basics of pointers in C, and went on to more complex arrangements and pointer arithmetic in the second part. Both times, we focused solely on pointe… ...
The C language allows you to provide a pointer to a function, just like a pointer to a variable. In both cases, a C pointer contains the address and the type information about the entity being pointed ...
Delegates are type safe function pointers *with an optional this pointer* thus no need to pass one round yourself. Obviously their utility is much enhanced in contract to C++ by virtue of being ...
However, in C you have to define a function by name and pass a pointer — not a huge problem, but it can get messy if you have a lot of callback functions that you use only one time.