B
bartek
Hello,
Please help me with the obvious...
Does the standard say anything about integer overflow? Does it result in
implementation defined behaviour?
Would the following code snippet result in '0' being displayed on all
implementations?
unsigned x(std::numeric_limits<unsigned>::max());
std::cout << ++x << std::endl;
Cheers,
b
Please help me with the obvious...
Does the standard say anything about integer overflow? Does it result in
implementation defined behaviour?
Would the following code snippet result in '0' being displayed on all
implementations?
unsigned x(std::numeric_limits<unsigned>::max());
std::cout << ++x << std::endl;
Cheers,
b