Question discussion

What will be printed by the following code (assume a typical two's-complement compiler)? #include int x = INT_MAX; x = x + 1; printf("%d",…

562Medium DSSSB TGT Computer Science 0 replies 1 views
0
What will be printed by the following code (assume a typical two's-complement compiler)? #include int x = INT_MAX; x = x + 1; printf("%d", x);
  • A0
  • BINT_MIN (a large negative number)
  • CINT_MAX (unchanged)
  • DA compilation error
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!