fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a,b,c;
  6. int *A, *B;
  7. a = 3;
  8. b = 5;
  9. A = &a;
  10. B = &b;
  11. printf("%d\n%d\n\n", A, B);
  12. c = (A - B);// ???
  13. printf("c=%d\n", c );//Vs 2015 выдает 3...Почему?
  14. printf("num1 = %d num2 = %d\n", *(B + c), *(A - c));
  15. return 0;
  16. }
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
1200726568
1200726572

c=-1
num1 = 3 num2 = 5