Answer Posted / kirankumaryakkala
a pointer that holds the address of a function.
in writing the interrupt service routines(isr),memory virus
programs, etc..
as simply, if u wanna execute one function out of two or
more funcitons( the selection based dynamically)
ex. int add(int a, int b)
int sub(int a, int b)
int mul(int a, int b)
int (*ptr)(int a, int b) //function pointer declaration to
hold a function that takes two integers, returns one integer
here,
ptr= it can assign any function name that is going to execute
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Which of these functions is safer to use : fgets(), gets()? Why?
Explain the difference between the local variable and global variable in c?
What is dynamic dispatch in c++?
What are reserved words with a programming language?
What is the purpose of macro in C language?
What is the scope of static variables in c language?
What is void main ()?
Write a program to generate random numbers in c?
What is the function of multilevel pointer in c?
What are valid signatures for the Main function?
How do you define structure?
Is main is a keyword in c?
What is the advantage of c?
Explain main function in c?
What is scope of variable in c?