Is the following going to work as expected on all platforms, sizes of int, etc? Or is there a more accepted way of doing it? (I made the following up.)
#define M
There is a standard way to this:
#include #include cout << numeric_limits::max();
Being standard, this is guaranteed to be portable across all platforms.