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

C language questions for civil engineering

0 Answers   Tech Mahindra,


Difference between Function to pointer and pointer to function

0 Answers  


what is the difference between normal variables and pointer variables..............

15 Answers   HP, Infosys, Satyam, Vivekanand Education Society,


What is pointers in c with example?

0 Answers  


Why c is known as a mother language?

0 Answers  






Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


What is a memory leak in structures? How can we rectify that?

2 Answers  


What is the purpose of ftell?

0 Answers  


Why static is used in c?

0 Answers  


11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


What is LINKED LIST? How can you access the last element in a linked list?

0 Answers   ADP,


#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }

1 Answers  


Categories