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

Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1738


What is the difference between a function and a method in c?

556


How can I find out if there are characters available for reading?

639


What is actual argument?

587


Is fortran still used today?

597






What is difference between structure and union?

593


What are keywords c?

596


What is 1d array in c?

598


Write a c program to demonstrate character and string constants?

1678


What does typedef struct mean?

654


Why c is known as a mother language?

636


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

714


What is meant by errors and debugging?

645


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

607


Explain the use of function toupper() with and example code?

651