struct A {
int a;
.
.
.
int b;
} obj;
const ptrdiff_t diff = &obj->b - &obj->a;
Will diff
always contain a constant which doesn't change even when the program is run several times?
Will diff
always be positive?
Is there a way to obtain that difference during compile-time? (other than manual counting)