ARM Technical Support Knowledge Articles

HOW BIG CAN A BINARY NUMBER BE?

Applies to: C51 C Compiler

Answer

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

Article last edited on: 2001-04-16 00:00:00

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential