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

What does s c mean in text?

601


Give the rules for variable declaration?

667


How to declare pointer variables?

677


Where in memory are my variables stored?

624


Explain About fork()?

638






What is identifier in c?

535


What is the data segment that is followed by c?

600


Can you define which header file to include at compile time?

578


How can I use a preprocessorif expression to ?

592


Explain continue keyword in c

576


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

704


What does #pragma once mean?

677


What does the file stdio.h contain?

597


What are global variables and explain how do you declare them?

565


Why isnt any of this standardized in c?

629