what is the advantage of function pointer

Answer Posted / sudeep reddy

function pointers can be used to replace switch/if
statements,to realize late binding(virtual function tables)
or to implement callback function primitives.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is assignment operator?

718


Why c is called procedure oriented language?

684


while initialization of array why we use a[][2] why not a[2][]...?

1960


Explain how can a program be made to print the line number where an error occurs?

786


What is the scope of local variable in c?

671






What are variables c?

709


Explain what will the preprocessor do for a program?

689


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5083


Is that possible to store 32768 in an int data type variable?

778


Is c pass by value or reference?

690


How can I read/write structures from/to data files?

636


Dont ansi function prototypes render lint obsolete?

688


Are global variables static in c?

762


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

752


what will be maximum number of comparisons when number of elements are given?

1528