int array[]={1,2,3,4,5,6,7,8};
#define SIZE (sizeof(array)/sizeof(int))
main()
{
if(-1<=SIZE) printf("1");
else printf("2");
}
Answer Posted / dnyaneshwar
1
| Is This Answer Correct ? | 3 Yes | 15 No |
Post New Answer View All Answers
Difference between linking and loading?
What does void main () mean?
What is structure data type in c?
How does #define work?
Write a program to implement queue.
what is the different bitween abap and abap-hr?
Describe explain how arrays can be passed to a user defined function
What are the 4 types of organizational structures?
What does emoji p mean?
What is meant by initialization and how we initialize a variable?
In which header file is the null macro defined?
What is the difference between declaring a variable and defining a variable?
plz let me know how to become a telecom protocol tester. thank you.
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 a function method?give example?