int Add(int nX, int nY)
{
return nX + nY;
}
int main()
{
int (*pFcn)(int, int) = Add;
int (*pFcn)(int, int) = &Add;
cout << pFcn(5, 3) << endl; // add 5 + 3
return 0;
}
my question is are both of these lines equivalent? or is one wrong and one right?
int (*pFcn)(int, int) = Add;
int (*pFcn)(int, int) = &Add;