How to find a range of listings? I have two versions that define this differently when the lowest value is negative. Stroustrup says for
enum e3 { min = -10 , max = 1000000 };
but C ++ Primer Plus 5th edition says
for example, if the smallest counter is -6, the next power of two [minus sign times] is -8, and therefore the lower limit is -7
I am confused, what is right?
Ankuj source
share