#include <stdio.h>
#include <stdlib.h>
int main()
{
int arr[]={10,20,30,40,50,60,70};
int *i,*j,*k;
k=2686703;
i=&arr[1];
j=&arr[5];
printf("%d\n%d\n",i,j) ;
printf("%d\n",j-i);
printf("%d",*(k));
return 0;
}
output :
2686700
2686716
garbage value
why is the difference between j and i =4 and not 16 ? If 4 bytes are reserved for each integer in an array why is their garbage value corrosponding to this intermediate address ?