What is function pointer and where we will use it

Answer Posted / raghanna

A function pointer is a variable that stores the address of a function that can later be called through that function pointer. This is useful because functions encapsulate behavior. For instance, every time you need a particular behavior such as drawing a line, instead of writing out a bunch of code, all you need to do is call the function.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formal argument?

649


Explain what are multibyte characters?

629


List some applications of c programming language?

551


Explain void pointer?

589


What is the difference between arrays and pointers?

631






How can I read in an object file and jump to locations in it?

577


Explain continue keyword in c

586


Explain how can I remove the trailing spaces from a string?

623


Explain what does a function declared as pascal do differently?

640


Why ca not I do something like this?

585


What is malloc calloc and realloc in c?

669


Can a variable be both static and volatile in c?

606


write a program to display all prime numbers

1454


Write a program with dynamically allocation of variable.

602


What is use of bit field?

772