I was playing with pointers in order to fully get the concept and then wanted to subtract two pointers expecting the distance between these two addresses or something, but a
The subtraction of two pointers in array will give the distance between the two elements.
Let the address of first element i.e., is 1000 then address of second element a+1 will be 1004. Hence p1 = 1000 and p2 =1004.
a+1
p1 = 1000
p2 =1004
p2-p1 = (1004- 1000) /size of int = (1004-1000)/4 =4/4 =1