I was going through some questions related to C programming language. And i found this question to be confusing. http://www.indiabix.com/c-programming/bitwise-operators/discussion-495
The question is “is it easy for a c compiler to convert binary to hexadecimal or binary to octal. The explanation given there is group every 4 bits and convert it to hex.. but its very easy to group 3 bits and convert it to octal. or is it easy for a human to convert octal easily than hex?
what would be the easiest method of a compiler to convert binary to octal/hex
All of them are the same in easiness. However, in computing world the use of octal is kinda seldom compared to hex. The only quite important use is on unix style permissions, other than that it’s hex and binary that takes the lead (along with decimal for common human friendly style).