posted 17 years ago
Binary can have 2 digits: zero and one
Octal can have up to 8 digits in each position. (0 - 7)
Decimal can have up to 10 digits in each position. (1 - 9)
Hexadecimal can have up to 16 digits in each position. (0 - F)
The maximum size for an int (in decimal form) is about 2 million. In hexadecimal that would be 7FFFFFFF. However a max long in hexadecimal would be 7FFFFFFFFFFFFFFF.
In other words, an octal number can be created that is infinitely long. However if you're talking about how many octal digits there could possibly be in an int, that's a different question. Can you clarify what you mean by "000 to 377 is the range right?" The range of what?
[ February 09, 2006: Message edited by: Marilyn de Queiroz ]
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt