1,183 views

If $x$ is a one dimensional array, then

1. $^*(x+i)$ is same as $^*(\&x[i])$
2. $\&x[i]$ is same as $x+i-1$
3. $^*(x+i)$ is same as $^*x[i]$
4. $^*(x+i)$ is same as $^*x+i$

*(X+i)=X[i]=*(&x[i])

for option c *(X+i)=**(X+i)  which is not correct

why is D wrong,explain plz
int x[4]={5,2,7,6};

i=0.  x[i]=5.   *(x+i)=5. &x[i]=5

if i=1 then *(x+i)=2

but *x=5 1st value of array

*x+i=5+1=6

due to this option D is wrong.
A

*(x+i) == x[i]