what is the advantage of function pointer

Answer Posted / mahend

Function pointers are very important while implementing
Callback in C, for instance if Software has layered
archiecture, Function pointer are used bye upper layer to
register with below layer on certain conditions (i.e. some
event or interrupt)

Is This Answer Correct ?    72 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between Macro and ordinary definition.

703


Explain what is #line used for?

588


What is static function in c?

598


What are the __date__ and __time__ preprocessor commands?

547


What is a shell structure examples?

562






What are the 32 keywords in c?

605


what does static variable mean?

625


What is structure of c program?

577


What is a function in c?

546


Write a program for finding factorial of a number.

609


What is c standard library?

665


Explain what does the function toupper() do?

605


How many bytes are occupied by near, far and huge pointers (dos)?

639


Can the sizeof operator be used to tell the size of an array passed to a function?

593


Explain how do you determine the length of a string value that was stored in a variable?

642