Quote Originally Posted by Dave_Sinkula
Code:
unsigned char bit = 1 << (CHAR_BIT - 1);
Code:
unsigned short bit = (((unsigned short)-1) >> 1) + 1;
Code:
unsigned int bit = (-1U >> 1) + 1
Code:
unsigned long bit = ULONG_MAX / 2 + 1;
That would produce the highest exponent of two storable in each of those datatypes.