D
Dave Rahardja
I've tried looking this topic up in the standard manual but came up empty...
1. What is the value of an unsigned integral type after it is decremented
below zero?
2. What is the value of an unsigned integral type after it is incremented past
its maximum value?
3. What is the value of a signed integral type after it is decremented below
its most negative value?
4. What is the value of a signed integral type after it is incremented past
its most positive value?
5. What is the value of x after the following sequence of statements?
unsigned m = 2;
unsigned n = 4;
unsigned x = m - n;
6. How about in the following case?
unsigned a = 2;
unsigned b = -2;
unsigned x = a - b;
1. What is the value of an unsigned integral type after it is decremented
below zero?
2. What is the value of an unsigned integral type after it is incremented past
its maximum value?
3. What is the value of a signed integral type after it is decremented below
its most negative value?
4. What is the value of a signed integral type after it is incremented past
its most positive value?
5. What is the value of x after the following sequence of statements?
unsigned m = 2;
unsigned n = 4;
unsigned x = m - n;
6. How about in the following case?
unsigned a = 2;
unsigned b = -2;
unsigned x = a - b;