Keil Logo

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: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.