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

Do you know pointer in c?

811


Can a program have two main functions?

855


Explain argument and its types.

792


What are the loops in c?

777


Tell me when would you use a pointer to a function?

816


What is the maximum no. of arguments that can be given in a command line in C.?

895


Between macros and functions,which is better to use and why?

1811


What are the advantages and disadvantages of c language?

769


Explain how can you be sure that a program follows the ansi c standard?

1144


What is strcmp in c?

754


Why clrscr is used in c?

794


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3402


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

878


What is a file descriptor in c?

816


What is an example of structure?

806