This week's book giveaway is in the Testing forum.We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line!See this thread for details.
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!

# range of char

janki tangeda
Ranch Hand
Posts: 54
In what number system is 0 to 0177777, range of type char?It is given as an answer to one of Dan Chisholm's test question.

Jay Pawar
Ranch Hand
Posts: 411
Originally posted by janki tangeda:
In what number system is 0 to 0177777, range of type char?It is given as an answer to one of Dan Chisholm's test question.

0177777 is octal representation of 65535 in decimal. Hope that helps

marc weber
Sheriff
Posts: 11343
janki, note that...
• Octal literals are prefixed with zero. For example, 034 is an octal representation of 28.
• Hexadecimal literals are prefixed with zero and the letter x. For example, 0x1c is a hexadecimal representation of 28.
•