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

Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2602


What are global variables and how do you declare them?

610


Why does not c have an exponentiation operator?

622


Why c is called procedure oriented language?

575


to find the closest pair

1816






What is the use of a conditional inclusion statement in C?

594


What is the difference between char array and char pointer?

525


Why is main function so important?

609


Can I initialize unions?

584


How we can insert comments in a c program?

623


What does *p++ do?

577


What is maximum size of array in c?

578


What is the difference between array_name and &array_name?

774


What is class and object in c?

583


I have a varargs function which accepts a float parameter?

573