#include<stdio.h>
int main(){
int a[]={1,2,3,5,1};
int *ptr=a+4;
int y=ptr-a;
printf("%d",y);
}
Answer Posted / anunithi
4
Is This Answer Correct ? | 6 Yes | 3 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]
What is const and volatile in c?
What is the easiest sorting method to use?
which type of aspect you want from the student.
What is the use of getchar() function?
Explain argument and its types.
Can we change the value of constant variable in c?
Explain 'bit masking'?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is the importance of c in your views?
How do you determine whether to use a stream function or a low-level function?
How can I manipulate strings of multibyte characters?
Explain high-order bytes.
Write the test cases for checking a variable having value in range -10.0 to +10.0?
How important is structure in life?