#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
Can we change the value of static variable in c?
Explain what is the difference between functions getch() and getche()?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the purpose of type declarations?
Ow can I insert or delete a line (or record) in the middle of a file?
What is c++ used for today?
What are nested functions in c?
Explain how can I read and write comma-delimited text?
How can I dynamically allocate arrays?
What's a good way to check for "close enough" floating-point equality?
how to count no of words,characters,lines in a paragraph.
Explain how do you determine the length of a string value that was stored in a variable?
Write a program to reverse a linked list in c.
write a proram to reverse the string using switch case?