Use INT_MAX, INT_MIN


#1

Use INT_MAX, INT_MIN to get the desired range.
A 32-bit signed integer has 31 bits for storing the number and remaining 1 bit for positive and neggative.


#2

Thanks, that helped! I was stuck at that for a long time.