Answer Posted / ranjit
dennis ritchi at at&t bell labs
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
How do you print only part of a string?
Explain about the constants which help in debugging?
Can we change the value of constant variable in c?
What is zero based addressing?
What are c preprocessors?
Write a program to print fibonacci series using recursion?
Explain what are the different data types in c?
How can you invoke another program from within a C program?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Write a program for finding factorial of a number.
Give the rules for variable declaration?
Can you subtract pointers from each other? Why would you?
what is the basis for selection of arrays or pointers as data structure in a program
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.