what is a function pointer and how all to declare ,define
and implement it ???

Answer Posted / swagatika

function pointer is function returning a pointer
Example-

int *sum(int a, int b)
{
int x;
x= a+b;
return &x;
}

but the pointer to a function means a function interm of
pointer pointing to the another function.

int (*sum)(sum1);//pointer to a function

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of static variables in c language?

619


What is the use of getchar functions?

661


What is a floating point in c?

588


Explain enumerated types.

588


diff between exptected result and requirement?

1588






What is the size of structure in c?

689


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

610


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.

701


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4480


What is include directive in c?

631


Why c is called a mid level programming language?

596


Write a program to check prime number in c programming?

582


What is c method?

522


What is storage class?

641


Are pointers really faster than arrays?

552