Here is the c code:
#include<stdio.h>
int main()
{
int a[]={0,1,2,3,4};
int*p[]={a,a+1,a+2,a+3,a+4};
int**ptr=p;
ptr++;
printf("%d , %d ",*ptr-a , **ptr);
*ptr++;
printf("\n%d , %d ",*ptr-a , **ptr);
*++ptr;
printf("\n%d , %d ",*ptr-a , **ptr);
++*ptr;
printf("\n%d , %d ", *ptr-a , **ptr);
return 0;
}
I am unable to understand the error and what should be amended in the code.

*ptr - atoint, because the resulting type isptrdiff_t: ideone.com/CfjqzO Also the*in*ptr++;is unnecessary.Warning: Source file is more recent than executableshould be taken into account. You need to recompile your program