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
Differentiate between full, complete & perfect binary trees.
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What is default value of global variable in c?
Is c procedural or object oriented?
how many key words availabel in c a) 28 b) 31 c) 32
I need a sort of an approximate strcmp routine?
What are header files and what are its uses in C programming?
What is ponter?
What is malloc return c?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is integer constants?
When would you use a pointer to a function?
How can you restore a redirected standard stream?
Explain how do you determine a file’s attributes?
What is a constant and types of constants in c?