返回函数指针的函数

#include <iostream>
using namespace std;

int add(int a, int b)
{
    return a + b;
}

int(*op())(int a, int b)//函数指针的参数在后面,里面括号是这个函数的参数
{
    return add;
}

void main()
{
    cout << op()(1, 2) << endl;
    system("pause");
}