main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
}
Answer Posted / bsn.teja
till array elements are not given any specific values,they
are supposed to contain garbage values.
here we initialised only 1st two elements of the array.
so output will be garbage values.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the best way to store flag values in a program?
Can a void pointer point to a function?
Differentiate between static and dynamic modeling.
how to introdu5ce my self in serco
Is printf a keyword?
What is calloc()?
What is the use of sizeof?
write a program in c language to print your bio-data on the screen by using functions.
What is double pointer in c?
What is the use of parallelize in spark?
what are # pragma staments?
What does sizeof int return?
What is the purpose of main( ) in c language?
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]
What is the advantage of an array over individual variables?