Firstly, this is undefined behaviour in as much as pointer arithmetic on 2 unrelated values. When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object
What exactly is your concern ?
Firstly, this is undefined behaviour in as much as pointer arithmetic on 2 unrelated values. When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object
What exactly is your concern ?