In what situations is octal base used?

后端 未结 9 1014
情话喂你
情话喂你 2020-12-01 17:35

I\'ve seen binary and hex used quite often but never octal. Yet octal has it\'s own convention for being used in some languages (ie, a leading 0 indicating octal base). When

9条回答
  •  既然无缘
    2020-12-01 18:38

    Octal is used when the syntax is a relic from the ages when it perhaps made sense on some platform (system words haven't always been a multiple of 8 bits). Nowadays hex is the thing to use.

提交回复
热议问题