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
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?
How can I prevent another program from modifying part of a file that I am modifying?
How can I open a file so that other programs can update it at the same time?
what does static variable mean?
What does the format %10.2 mean when included in a printf statement?
Write a progarm to find the length of string using switch case?
What is the use of #include in c?
what is different between auto and local static? why should we use local static?
What are reserved words?
What is break in c?
Why do we use stdio h and conio h?
Define the scope of static variables.
Simplify the program segment if X = B then C ← true else C ← false
c language interview questions & answer
What is the value of h?