Define function pointers?



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

Post New Answer

More C Interview Questions

write a c program to calculate sum of digits till it reduces to a single digit using recursion

0 Answers   IBM,


What language is lisp written in?

0 Answers  


What is realloc in c?

0 Answers  


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); } }

1 Answers  


What are the advantages of using macro in c language?

0 Answers  






#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 Answers  


what is the difference between embedded c and turbo c ?

1 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


What is the use of f in c?

0 Answers  


write a recursive program in'c'to find whether a given five digit number is a palindrome or not

2 Answers  


How many types of functions are there in c?

0 Answers  


Do you know what is the purpose of 'extern' keyword in a function declaration?

0 Answers  


Categories