Code:
static int a[]={0,4,7,9,11};
static int *p[]={a,a+1,a+2,a+3,a+4};
int **ptr=p;
ptr++;
printf("%d %d %d %d\n",ptr,p,ptr-p,*ptr);
my problem is with ptr-p......can someone pls explain why it is 1 ?
i think ptr-p should print 2 .....
thanks in advance