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

What is the scope of static variables in c language?

857


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

861


What are header files and what are its uses in C programming?

864


What is pass by reference in functions?

551


Why is it that not all header files are declared in every C program?

917


Explain the use of fflush() function?

862


Explain what are compound statements?

827


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2171


Write a program to print ASCII code for a given digit.

899


What will be the outcome of the following conditional statement if the value of variable s is 10?

1059


What is queue in c?

771


how to write a c program to print list of fruits in alpabetical order?

2077


What is the difference between struct and typedef struct in c?

905


What are the different types of data structures in c?

868


What is the use of header?

843