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

write a program in c language to print your bio-data on the screen by using functions.

6380


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

724


How can you tell whether two strings are the same?

930


Why is structure important for a child?

736


What does the characters “r” and “w” mean when writing programs that will make use of files?

1019






What is the size of structure pointer in c?

719


How do I read the arrow keys? What about function keys?

714


What is infinite loop?

745


What is a #include preprocessor?

723


Differentiate between static and dynamic modeling.

728


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

722


Write programs for String Reversal & Palindrome check

706


What are volatile variables in c?

616


What is nested structure in c?

710


What does the error 'Null Pointer Assignment' mean and what causes this error?

854