#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
Give differences between - new and malloc() , delete and free() ?
How to declare a variable?
Which built-in library function can be used to match a patter from the string?
Tell me is null always defined as 0(zero)?
What is the modulus operator?
what is a function method?give example?
What is the use of static variable in c?
What’s a signal? Explain what do I use signals for?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Why is c called a structured programming language?
Explain why c is faster than c++?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the difference between struct and union in C?
What is exit() function?