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 use of #define preprocessor in c?
Explain how can I make sure that my program is the only one accessing a file?
Why we use break in c?
Is c procedural or functional?
Explain low-order bytes.
What are the different types of constants?
Explain what are its uses in c programming?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
How can you find the exact size of a data type in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
What are the properties of union in c?
What is c token?
Can you please explain the difference between strcpy() and memcpy() function?
Can you please explain the difference between exit() and _exit() function?
What is the data segment that is followed by c?