#include int main() { int i=10,j=20,diff; diff=&j-&i; printf(\"\\nAddress of i=%u Address of j=%u\",&i,&j); printf(\"
You are using pointer arithmetic. Because int is 4 bytes on your machine, result * 4 is the distance between the two address. However you can apply conversion like (int) on the pointers to get what you expected.