• Post Reply Bookmark Topic Watch Topic
  • New Topic

byte question  RSS feed

 
Abigail Decan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

when i printed this out, i got 18.
please explain how 0x12 turns into 18.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think the "Ox" does? If you don't know, read up on "hexadecimal literals".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!