1、C語言實現code
static const int MAX_INT = (int)( (unsigned)~0>>1); static const int MIN_INT = (int)( (unsigned)~0>>1)-1; printf("%d \n", MAX_INT); printf("%d \n", MIN_INT);
結果:im