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
I came across some code that puts a (void) cast before each call to printf. Why?
What are the different file extensions involved when programming in C?
difference between Low, Middle, High Level languages in c ?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What is "Duff's Device"?
What is a string?
How do you list files in a directory?
What is cohesion and coupling in c?
What are global variables and how do you declare them?
Explain what is the most efficient way to store flag values?
What is a floating point in c?
Give differences between - new and malloc() , delete and free() ?
What are the advantages and disadvantages of a heap?
When we use void main and int main?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code