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
If null and 0 are equivalent as null pointer constants, which should I use?
What is scanf () in c?
Explain what are multibyte characters?
How many levels of pointers can you have?
Can a void pointer point to a function?
What is a null pointer in c?
Do character constants represent numerical values?
How can I sort a linked list?
What is null pointer constant?
What is the scope of local variable in c?
Can we use any name in place of argv and argc as command line arguments?
How can you allocate arrays or structures bigger than 64K?
Why c language is called c?
What are runtime error?
What is ## preprocessor operator in c?