What is function pointer and where we will use it
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / bsreddi
A function pointer is a type of pointer in C, C++ and other
C-like programming languages. When dereferenced, a function
pointer invokes a function, passing it zero or more
arguments just like a normal function. In programming
languages like C, function pointers can be used to simplify
code, such as replacing large switch statements.
| Is This Answer Correct ? | 5 Yes | 5 No |
Is it possible to run a c program without using main?If yes HOW??
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986
what is the use of ‘auto’ keyword?
What does typedef struct mean?
What is the condition that is applied with ?: Operator?
What are header files why are they important?
What is enumerated data type in c?
Can a pointer be null?
Explain how do you view the path?
Explain what are compound statements?
What is a loop?
Explain how can I manipulate strings of multibyte characters?