Top "Function-pointers" questions

A function pointer is a pointer to a function, which can be stored in a variable.

Python function pointer

I have a function name stored in a variable like this: myvar = 'mypackage.mymodule.myfunction' and I now want to …

python function-pointers
Function pointer to member function

I'd like to set up a function pointer as a member of a class that is a pointer to another …

c++ oop function-pointers
How can I pass a class member function as a callback?

I'm using an API that requires me to pass a function pointer as a callback. I'm trying to use this …

c++ callback function-pointers c++03
How can I call a function using a function pointer?

Suppose I have these three functions: bool A(); bool B(); bool C(); How do I call one of these functions …

c function-pointers
Function pointer as parameter

I try to call a function which passed as function pointer with no argument, but I can't make it work. …

c++ function pointers function-pointers
Function pointer as an argument

Is it possible to pass a function pointer as an argument to a function in C? If so, how would …

c function-pointers argument-passing
How define an array of function pointers in C

I've a little question. I'm trying to define an array of function pointers dynamically with calloc. But I don't know …

c++ c arrays function-pointers
What's the nearest substitute for a function pointer in Java?

I have a method that's about ten lines of code. I want to create more methods that do exactly the …

java closures function-pointers
How to create a typedef for function pointers

I think it would be easier to use function pointers if I created a typedef for a function pointer, but …

c function-pointers typedef
Casting a function pointer to another type

Let's say I have a function that accepts a void (*)(void*) function pointer for use as a callback: void do_…

c function-pointers