-
What is the correct way to declare and assign a function pointer?
(Assuming the function to be assigned is "int multi(int, int);")
-
- int *fn_ptr(int, int) = multi;
- int *fn_ptr(int, int) = &multi;
- int (*fn_ptr)(int, int) = multi;
- All of above
- None of these
Correct Option: C
int (*fn_ptr)(int, int) = multi;