why we need function pointers?

Answer Posted / gajendra

Function Pointers are pointers, i.e. variables, which point to the address of a function. You must keep in mind,
that a running program gets a certain space in the main-memory. Both, the executable compiled program code
and the used variables, are put inside this memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are there in c?

623


What 'lex' does?

723


provide an example of the Group by clause, when would you use this clause

1714


What is the difference between array_name and &array_name?

783


please send me the code for multiplying sparse matrix using c

1731






Tell us two differences between new () and malloc ()?

617


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1362


Define Spanning-Tree Protocol (STP)

651


Can you subtract pointers from each other? Why would you?

567


What does malloc () calloc () realloc () free () do?

565


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1639


Why can’t we compare structures?

818


What is a sequential access file?

652


What are the various types of control structures in programming?

634


Write a program to generate the Fibinocci Series

673