Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

range of char

 
janki tangeda
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic