Explain function pointer with exapmles.

Answer Posted / vishnu

int temp(char t, int k)
{
t = 'd';
k = 90;
return 1;

}

int main()
{

int (* fun)(char ch, int i);// function pointer
fun = temp;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a stream?

608


Simplify the program segment if X = B then C ← true else C ← false

2581


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3730


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1466


What is c programming structure?

620






What are the functions to open and close file in c language?

725


Explain the advantages of using macro in c language?

580


Why is structure important for a child?

601


What are the properties of union in c?

588


how to find binary of number?

3429


What are the benefits of organizational structure?

571


Are the outer parentheses in return statements really optional?

575


What are structural members?

568


What is void main ()?

609


how to find anagram without using string functions using only loops in c programming

2715