#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


Please Help Members By Posting Answers For Below Questions

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]

1959


What is const and volatile in c?

567


What is the easiest sorting method to use?

636


which type of aspect you want from the student.

1703


What is the use of getchar() function?

631






Explain argument and its types.

607


Can we change the value of constant variable in c?

579


Explain 'bit masking'?

656


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

717


What is the importance of c in your views?

598


How do you determine whether to use a stream function or a low-level function?

650


How can I manipulate strings of multibyte characters?

640


Explain high-order bytes.

677


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1819


How important is structure in life?

594