main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / rohit
57 94
| Is This Answer Correct ? | 33 Yes | 21 No |
Post New Answer View All Answers
What is %g in c?
What is the purpose of sprintf() function?
What is page thrashing?
Which header file is essential for using strcmp function?
List a few unconditional control statement in c.
What do you mean by command line argument?
Explain what is operator promotion?
What is difference between structure and union with example?
Write a program which returns the first non repetitive character in the string?
Is there any data type in c with variable size?
What is variable declaration and definition in c?
Explain the difference between structs and unions in c?
What is the best way of making my program efficient?
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]
Why main is not a keyword in c?