#ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
Answer Posted / rohit
Compilation error due to 'i' is not declared only.
Not cause by visibility of TRUE macro.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what does it mean when a pointer is used in an if statement?
Why isnt any of this standardized in c?
What is the scope of an external variable in c?
what will be the output for the following main() { printf("hi" "hello"); }
What are inbuilt functions in c?
How do we print only part of a string in c?
State the difference between realloc and free.
Where are the auto variables stored?
What is the significance of c program algorithms?
What are examples of structures?
Explain what is wrong in this statement?
What is union in c?
Why do we use null pointer?
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]
Explain the use of keyword 'register' with respect to variables.