Define function pointers?
Answer / preeti singh
A function pointer is a type of pointer that points to a
function, for e.g. a pointer to the function :
int fun(int a,int b)
can be declared as :
int(*myptr)(int a,int b);
here myptr is a type of pointer which can point to any
function which takes two integer arguments and returns int.
Is This Answer Correct ? | 5 Yes | 0 No |
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What language is lisp written in?
What is realloc in c?
what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }
What are the advantages of using macro in c language?
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
what is the difference between embedded c and turbo c ?
How can you convert integers to binary or hexadecimal?
What is the use of f in c?
write a recursive program in'c'to find whether a given five digit number is a palindrome or not
How many types of functions are there in c?
Do you know what is the purpose of 'extern' keyword in a function declaration?