#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 / sridhar
1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are the different types of linkage exist in c?
Are there namespaces in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What does == mean in texting?
How can I read a binary data file properly?
Does c have circular shift operators?
Array is an lvalue or not?
What is calloc malloc realloc in c?
Why c is known as a mother language?
Why calloc is better than malloc?
What is an auto keyword in c?
If the size of int data type is two bytes, what is the range of signed int data type?
how could explain about job profile
Write a c program to demonstrate character and string constants?