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
what do you mean by inline function in C?
Differentiate between a structure and a union.
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Can we initialize extern variable in c?
What is operator precedence?
Explain what is the difference between null and nul?
Does c have function or method?
How do you determine the length of a string value that was stored in a variable?
What is a structure in c language. how to initialise a structure in c?
Explain the difference between #include "..." And #include <...> In c?
What is a function in c?
Is linux written in c?
How many main () function we can have in a project?
Why does everyone say not to use scanf? What should I use instead?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above