what is the advantage of function pointer

Answer Posted / vidhya

It is more efficient. So it mostly used in real type
application.
The use of pointer is to store address location of a
variable or a function.as similar we are storing a variable
address in a pointer variable and refering it ,we can store
the address of a function in pointer variable.

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is integer constants?

606


what is the role you expect in software industry?

1640


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

597


What are void pointers in c?

563


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

598






What are 3 types of structures?

578


What is double pointer in c?

573


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1583


What is the difference between #include and #include 'file' ?

596


What is keyword with example?

620


what is a function method?give example?

1904


State the difference between realloc and free.

615


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2670


c language interview questions & answer

1447


What is the maximum length of an identifier?

653