我有两个问题
我看到了
int (*Ptr)(int,int);
Ptr=someOtherFuncion;
Run Code Online (Sandbox Code Playgroud)
它应该不是那样的吗?
Ptr=&someOtherFuncion;
Run Code Online (Sandbox Code Playgroud)
2.我学习了函数指针,就像那样回调
someOtherFunction(functionPointer)
Run Code Online (Sandbox Code Playgroud)
如果我将一个不是指针的常规函数放在什么区别?