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
Combinations of fibanocci prime series
What are preprocessor directives in c?
What does it mean when a pointer is used in an if statement?
Why is main function so important?
Why is c used in embedded systems?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is getch c?
What is identifiers in c with examples?
Write a simple code fragment that will check if a number is positive or negative.
How can I remove the trailing spaces from a string?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is the use of f in c?
Explain the difference between strcpy() and memcpy() function?
Why do we use null pointer?