c ++ object passed as a function pointer operates similarly as in the c #:
#include <iostream> using namespace std; int tst(int a){ cout<<a<<endl; return 5; } // Type + (* + variable name) (+ function requires parameters) void BigTest ( int (* Test) ( int A)) { int C Test = ( . 5 ); } int main () { // passed in as a function BigTest (tst); }