Wanna know the limits of native types?
Use stl class numeric_limits. Wonderful class. It helps you in listing out the
- Maximum and minimum value for a native type
- The number of bits taken by a native type
- Whether a type is signed or unsigned
- Whether a type can represent a NaN
- Whether a type can represent positive infinity…
Check out the class in MSDN for a sample program.