Define function pointers?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is #define in c?

624


What is a macro?

659


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15513


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

839


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

650






What is string function in c?

544


What are extern variables in c?

551


What is a static function in c?

627


What is define c?

577


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1528


What is the use of #include in c?

585


Write a program to print factorial of given number without using recursion?

573


How the c program is executed?

636


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2706


Difference between constant pointer and pointer to a constant.

617