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


Please Help Members By Posting Answers For Below Questions

In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1003


The statement, int(*x[]) () what does in indicate?

925


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1836


Explain how does flowchart help in writing a program?

891


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1024


What is meant by gets in c?

830


What is the use of a conditional inclusion statement in C?

857


What are the header files used in c language?

814


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1504


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

958


Is there a way to compare two structure variables?

877


Explain main function in c?

873


Explain how do you determine a file’s attributes?

835


What is anagram in c?

719


Is a house a shell structure?

927