Top "Function-pointers" questions

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

C: Pointer to inline function

I have a static inline function defined in an H file, and at one point in a C file, I'm …

c function-pointers inline-functions
Why are function pointers and data pointers incompatible in C/C++?

I have read that converting a function pointer to a data pointer and vice versa works on most platforms but …

c++ c pointers function-pointers
How to print the address of a function?

I let gcc compile the following example using -Wall -pedantic: #include <stdio.h> int main(void) { printf("main: %…

c linux gcc function-pointers gcc-warning
ISO C Void * and Function Pointers

While following some tutorials and reading about function pointers I learned that evidently assigning a void pointer to a function …

c function-pointers void-pointers
Function Pointer - Automatic Dereferencing

Possible Duplicate: How does dereferencing of a function pointer happen? void myprint(char* x) { printf("%s\n", x); } int main() { …

c function-pointers
Can a lambda expression be passed as function pointer?

I am trying to pass a lambda expression to a function that takes a function pointer, is this even possible? …

c++ lambda c++11 function-pointers
How do you declare an extern "C" function pointer

So I have this code: #include "boost_bind.h" #include <math.h> #include <vector> #include <…

c++ function-pointers boost-bind
How to assign a null value to a function type variable in Kotlin?

I have a variable that holds a callback, and by default it's value should be null. But this syntax doesn't …

function function-pointers kotlin
function pointer vs functors in C++

What is the difference between using functors and function pointers. For example //Functor struct add_x { int x; add_x(…

c++ function-pointers functor
C# P/Invoke: Marshalling structures containing function pointers

Sorry for the verbose introduction that follows. I need insight from someone knowing P/Invoke internals better than I do. …

c# pinvoke marshalling structure function-pointers