Answer Posted / kamini
the fflush() function is useed for remove the garbage value
of keyboard.
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is volatile variable in c?
What's the best way of making my program efficient?
What is nested structure in c?
What is #define in c?
What is structure and union in c?
Tell me when is a void pointer used?
How the c program is executed?
How do you determine a file’s attributes?
What is boolean in c?
What are the storage classes in C?
Do you know the use of fflush() function?
How do shell structures work?
Why is c so important?
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?