Good day...
void main() { int a,b,c; int *A, *B; a = 3; b = 5; A = &a; B = &b; c = (A - B);// ??? printf("c=%d\n", c );//Vs 2015 выдает 3...Почему? printf("num1 = %d num2 = %d\n", *(B + c), *(A - c)); } I do not understand this action, or rather, because this is the subtraction of addresses and the difference is returned to the int? But after all, they do not have to be near, then I don’t understand where the number 3 comes from ...?
3 * sizeof(int)in this case. - insolor