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

Why is c platform dependent?

623


What is define directive?

640


What does malloc () calloc () realloc () free () do?

560


What do you mean by recursion in c?

626


What is time null in c?

583






console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

655


What is hungarian notation? Is it worthwhile?

697


Are there namespaces in c?

568


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2269


Why array is used in c?

553


Write a program to print "hello world" without using a semicolon?

595


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

598


Is main is a keyword in c?

610


How important is structure in life?

590


What is pointer to pointer in c with example?

549