What is the correct way to declare and assign a function pointer? (Assuming the function to be assigned is "int multi(int, int);")

Đức Linh

New member
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
 

Tìm kiếm

Back
Top