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
Accountancy,
4 months ago
Science,
4 months ago
Science,
4 months ago
Social Sciences,
8 months ago
English,
1 year ago
Math,
1 year ago
History,
1 year ago