#include int main() { int *p = 100; int *q = 92; printf(\"%d\\n\", p - q); //prints 2 }
Shouldn\'t the output of above pr
According to the standard (N1570)
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; the result is the difference of the subscripts of the two array elements.