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
What is the maximum length of an identifier?
What is malloc calloc and realloc in c?
Do you know the difference between exit() and _exit() function in c?
What are the properties of union in c?
Write a program to print factorial of given number using recursion?
What is difference between Structure and Unions?
Can you assign a different address to an array tag?
What is header file in c?
Explain how can you check to see whether a symbol is defined?
given post order,in order construct the corresponding binary tree
Why c is called top down?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Is c# a good language?
Can we initialize extern variable in c?