#include <stdio.h>
int main() {
// two integers.
int a = 10, b = 20;
// two pointers, pointing to 'a' and 'b'
int *p = &a, *q = &b;
// print the difference between the pointers
printf("Difference between p and q is %d\n", p - q);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: