Skip to main content

2.3) Exercise 3


Note: for this and many of the subsequent exercises, you will need to use files of C++ source code that we provide. We have bundled all of these these together in a single Zip archive. Download and unpack it now.

  1. Edit the example program intlimits.cpp from the aforementioned download. Compile and run it to see the limits on integer representation that apply to your machine.
  2. Edit the example program floatlimits.cpp. Compile and run it to see the limits on floating-point representation that apply to your machine.