#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
How can I read in an object file and jump to locations in it?
Explain can static variables be declared in a header file?
How can you convert integers to binary or hexadecimal?
What is the difference between far and near in c?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is the explanation for the dangling pointer in c?
What is modifier & how many types of modifiers available in c?
Explain what math functions are available for integers? For floating point?
What is cohesion and coupling in c?
Explain how do you print an address?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is extern c used for?
What is storage class?
How can I implement a delay, or time a users response, with sub-second resolution?
What does the && operator do in a program code?