
Lesson 10-2: Simple Data Types
238 | Chapter 10
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Write a program that prints out the values of the expressions listed in the table. Show
the results. To access INT_MAX, you must include file <climits>.
Expression Value
INT_MAX
_______________
1 + INT_MAX _______________
1 + (- INT_MAX) _______________
1 - INT_MAX _______________
1 - (- INT_MAX)) _______________
Did you get what you expected? Explain.
Exercise 2: Write a program that prints out the size in bytes of all of the numeric types, both
integral and floating, on ...