Examveda

What is the correct way to declare and assign a function pointer?
(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


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer