Tell me when would you use a pointer to a function?



Tell me when would you use a pointer to a function?..

Answer / Anuj Kumar Kanoijia

A pointer to a function is used when we want to store, pass or return functions as data. Some common uses include creating callback functions, dynamic linking, and function polymorphism.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Find MAXIMUM of three distinct integers using a single C statement

1 Answers  


What is data structure in c and its types?

1 Answers  


write c program to display output 10(10+20)+(10+20+30)+ ... n term

0 Answers   Hindustan Gum Chemicals,


is compiler do read the data line by line or not. ??

6 Answers   LG Soft, Satyam, Tech Mahindra,


Is it possible to execute code even after the program exits the main() function?

1 Answers  


Write a program to print all permutations of a given string.

1 Answers   JPMorgan Chase,


How can I copy just a portion of a string?

1 Answers  


Create a simple code fragment that will swap the values of two variables num1 and num2.

1 Answers  


What is the use of gets and puts?

1 Answers  


Write a C Program to display the following menu: Menu 1. Display 2. Copy 3. Append 4. Exit Accept the choice (1-4) from the user, and perform the following tasks: Choice 1: Accept a file name from the user and display the file on screen Choice 2: Accept two file names, and copy first file to the second Choice 3: Accept two file names, and append second file to the first file Choice 4: Terminate the program

1 Answers   Accenture, Concor, DMU, Satyam, Syntel, Tora,


Who invented b language?

1 Answers  


can i know the source code for reversing a linked list with out using a temporary variable?

6 Answers   Honeywell,


Categories