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

Explain 'bus error'?

547


What does d mean?

572


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

1495


How can I implement a delay, or time a users response, with sub-second resolution?

613


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1475






Explain which function in c can be used to append a string to another string?

574


What is spark map function?

576


What is maximum size of array in c?

575


Why do we need volatile in c?

737


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2401


write a program to print largest number of each row of a 2D array

1862


When should structures be passed by values or by references?

575


What is .obj file in c?

641


What is c mainly used for?

589


How can you determine the size of an allocated portion of memory?

734