Hello, explain on fingers what it means:
int (*fp) (int a); What is being done here? Can be more? Thank!
Hello, explain on fingers what it means:
int (*fp) (int a); What is being done here? Can be more? Thank!
A function pointer variable named fp. The function accepts an input parameter of type int and also returns an int.
int foo(int a) { return ++a; } ..... int (*fp)(int a); fp = &foo; fp(5); // вызов функции foo через указатель на неё. Source: https://ru.stackoverflow.com/questions/66540/
All Articles