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
Write a program to swap two numbers without using the third variable?
Write a program which returns the first non repetitive character in the string?
What is a pointer and how it is initialized?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
The difference between printf and fprintf is ?
What is self-referential structure in c programming?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is a built-in function in C?
What is a c token and types of c tokens?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What are the different types of C instructions?
Calculate 1*2*3*____*n using recursive function??
What are the types of data types and explain?
What is meant by 'bit masking'?
What is FIFO?