how to use pointer to functions in C
Answers
Answered by
1
Pointer to functions
A function pointer can point to a specific function when it is assigned the name of that function. int sum(int, int); int (*s)(int, int); s = sum; Here s is a pointer to a function sum . Now sum can be called using function pointer s along with providing the required argument values.
Similar questions
English,
3 months ago
Social Sciences,
7 months ago
English,
11 months ago
Math,
11 months ago
History,
11 months ago