why we need function pointers?

Answer Posted / naman patidar

Apart from above mentioned usage function pointer are used
by event listeners and callback utilities in multi threaded
applications.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you return null in c?

872


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

883


What is sizeof int?

841


What is function prototype?

793


What is 'bus error'?

874


How do you define structure?

799


what are bit fields in c?

1204


Explain what are preprocessor directives?

828


Why do we need a structure?

791


What is calloc in c?

887


ATM machine and railway reservation class/object diagram

5009


Does c have circular shift operators?

972


Write a program to reverse a linked list in c.

866


Once I have used freopen, how can I get the original stdout (or stdin) back?

845


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1614