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
How many bytes are occupied by near, far and huge pointers (dos)?
Explain threaded binary trees?
Why is c fast?
Write a c program to demonstrate character and string constants?
What is a stream in c programming?
Do you know pointer in c?
What does. int *x[](); means ?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
How a string is stored in c?
how to make a scientific calculater ?
Is it better to bitshift a value than to multiply by 2?
What are the 4 types of organizational structures?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
Why is void main used?
Explain how can I write functions that take a variable number of arguments?