What is function pointer and where we will use it
Answer Posted / 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 |
Post New Answer View All Answers
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
How would you obtain the current time and difference between two times?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Write a code to remove duplicates in a string.
What is the purpose of main() function?
List out few of the applications that make use of Multilinked Structures?
How do I create a directory? How do I remove a directory (and its contents)?
Explain how can you avoid including a header more than once?
Why malloc is faster than calloc?
What do you understand by normalization of pointers?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What is #line in c?
What are the application of c?
Are local variables initialized to zero by default in c?