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
What is the scope of static variables in c language?
What is the use of getchar functions?
What is a floating point in c?
Explain enumerated types.
diff between exptected result and requirement?
What is the size of structure in c?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
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.
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.
What is include directive in c?
Why c is called a mid level programming language?
Write a program to check prime number in c programming?
What is c method?
What is storage class?
Are pointers really faster than arrays?