The following code I need help with
I am getting the following errorCode:struct { int x; int y; int (*func)(int,int); } test; int testFunc(int a,int b) { return b; } void testing() { test.x=1; test.y=2; test.func=&testFunc(5,6); } int main(int argc, char **argv) { testing(); return 0; }
Code:error: lvalue required as unary ‘&’ operand test.func=&testFunc(5,6);