Take the 2-minute tour ×  To retrieve the smallest value i have
to use numeric_limits<int>::min()  I suppose the smallest int is
-2147483648, and tests on my machine showed this result. But
some C++ references like Open Group Base Specifications and
cplusplus.com define it with the value -2147483647.  I ask this
question because in my implementation of the negaMax Framework
(Game Tree Search) the value minimal integer * (-1) has to be
well defined. Yes, with minimal int = (numeric_limits::min() +
2) i am on the safe side in any case, thus my question is more
theoretically but i think nevertheless quite interesting.
share|improve this question Why not ask what the maximum integer
is, and multiply that by -1 to get the effective minimum for
your purposes? –  Anon. Feb 22 '10 at 22:15 In two-s compliment,
the absolute value of the maximum integer is 1 greater than the
minimum integer –  tzenes Feb 22 '10 at 22:19 @Anon: Thanks,
this is better then my idea (minimal int + 2) –  Christian Ammer
Feb 22 '10 at 22:38