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 a semicolon (;) at the end of every program statement?
I have seen function declarations that look like this
How is a null pointer different from a dangling pointer?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Are there namespaces in c?
Can we use visual studio for c?
Explain the difference between strcpy() and memcpy() function?
Can a pointer be null?
How do I create a directory? How do I remove a directory (and its contents)?
What are near, far and huge pointers?
can any one tel me wt is the question pattern for NIC exam
What are the characteristics of arrays in c?
Is it possible to have a function as a parameter in another function?
What is 1d array in c?
What is line in c preprocessor?