Answer Posted / sanjay bhosale
function pointer is simply a pointer which holds the address of the function so we can call that function by using pointer.
It is helpful in situations where we are required to pass the function pointer as parameter to some previously defined functions.
for e.g.
in comparison method we may pass function pointer for function which will compare 2 items/objects and help to comparison method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is ponter?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Tell me the use of bit field in c language?
How can you convert integers to binary or hexadecimal?
Write a program to swap two numbers without using the third variable?
What are 3 types of structures?
how should functions be apportioned among source files?
What are register variables in c?
How is actual parameter different from the formal parameter?
Explain how can type-insensitive macros be created?
Explain pointers in c programming?
What is the explanation for modular programming?
Explain what are bus errors, memory faults, and core dumps?
Difference between Shallow copy and Deep copy?
Difference between macros and inline functions? Can a function be forced as inline?