43(function pointer 1)
#include<iostream> using namespace std; typedef int A; typedef void (*PF)(); typedef int (*P_Adder)(double,long); void hello() { cout<<"hello"<<endl; } A inc(A x) { return x+1; } int adder(double x,long y) { return x+y; } int main() { PF pf; pf=hello; (*pf)(); int (*p_inc)(int)=inc; cout<<(*p_inc)(1)<<endl; P_Adder p_adder=adder; cout<<(*p_adder)(1,1)<<endl; return 0; }