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


Please Help Members By Posting Answers For Below Questions

Why does the call char scanf work?

618


What is integer constants?

617


What is the difference between volatile and const volatile?

561


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

649


Suggesting that there can be 62 seconds in a minute?

594






What are the 4 data types?

594


What is the data segment that is followed by c?

609


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

656


Explain argument and its types.

600


What is property type c?

602


praagnovation

1775


What is s or c?

594


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

1485


Explain what are its uses in c programming?

590


What is modifier & how many types of modifiers available in c?

608