what is the advantage of function pointer

Answer Posted / yogesh

It is useful when you want to send function as argument to
another function.

Is This Answer Correct ?    139 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1613


How can I prevent another program from modifying part of a file that I am modifying?

709


How can I open a file so that other programs can update it at the same time?

771


what does static variable mean?

757


What does the format %10.2 mean when included in a printf statement?

1224






Write a progarm to find the length of string using switch case?

1712


What is the use of #include in c?

697


what is different between auto and local static? why should we use local static?

758


What are reserved words?

753


What is break in c?

706


Why do we use stdio h and conio h?

759


Define the scope of static variables.

712


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

2695


c language interview questions & answer

1574


What is the value of h?

701