Technical Support

C51: HOW BIG CAN A BINARY NUMBER BE?

QUESTION

How big can a binary integer be using the Keil C51 Compiler?

ANSWER

The maximum size for binary integers are as follows:

char           =       -128 to 127
unsigned char  =          0 to 255
int            =     -32768 to 32767
unsigned int   =          0 to 65535
long           = -268435456 to 268435455
unsigned long  =          0 to 4294967295

SEE ALSO

Last Reviewed: Monday, April 16, 2001


Did this article provide the answer you needed?
 
Yes
No
Not Sure