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

hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1879


What do you mean by dynamic memory allocation in c?

853


Do you know the difference between malloc() and calloc() function?

821


What are logical errors and how does it differ from syntax errors?

923


What is wrong with this initialization?

780


Is it cc or c in a letter?

761


will u please send me the placement papers to my mail???????????????????

1624


Explain about block scope in c?

858


Why doesnt that code work?

785


What does d mean?

789


What is difference between structure and union?

869


Explain what are reserved words?

843


What is the stack in c?

894


What is string concatenation in c?

780


Can we increase size of array in c?

714