1.

Which of the following is a correct syntax to pass a Function Pointer as an argument?

A. void pass(int (*fptr)(int, float, char)){}
B. void pass(*fptr(int, float, char)){}
C. void pass(int (*fptr)){}
D. void pass(*fptr){}
Answer» B. void pass(*fptr(int, float, char)){}


Discussion

No Comment Found