What is the correct way to declare and assign a function pointer?
(Assuming the function to be assigned is "int multi(int, int);")
(Assuming the function to be assigned is "int multi(int, int);")
A. int (*fn_ptr)(int, int) = multi;
B. int *fn_ptr(int, int) = multi;
C. int *fn_ptr(int, int) = &multi;
D. none of the mentioned
Answer: Option A
Join The Discussion