gerry@TOADWAR.UCAR.EDU (gerry wiener) (12/02/89)
When the program below is compiled and executed, it produces the following output: min value is -./,),(-*,( max value is 2147483647 When the two lines containing cout are commented out and the printf line is uncommented, the following output is produced: e is -2147483648, f is 2147483647 ------------------------------------------------------------------------ #include <stream.h> main() { int e; int f; e = 1; /* make larger */ while (e > 0) { e <<= 1; f = e - 1; } cout << "min value is " << (int)e << '\n'; cout << "max value is " << (int)f << '\n'; /* printf("e is %d, f is %d\n", e, f); */ }