C Programming - Bitwise Operators - Discussion


In which numbering system can the binary number 1011011111000101 be easily converted to?

[A]. Decimal system
[B]. Hexadecimal system
[C]. Octal system
[D]. No need to convert

Answer: Option B


Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit.

Vinod said: (Jun 4, 2010)  
how to hexadecimal system better then decimal system

Srinivasan said: (Sep 19, 2010)  
Binary              : 1011   0111   1100   0101
Decimal(4digts): 11 7 12 5 (For Manual use)
Hexadecimal : B 7 C 5

Binary (1011011111000101) = Hexadecimal (B7C5)

Here I converted binary to hexadecimal easily. Try to decimal.

Ranjeet Jaiswal said: (Dec 17, 2010)  
Binary : 1 011 011 111 000 101

Decimal(3digts) : 1 3 3 7 0 5

Octal : 1 3 3 7 0 5

Binary (1011011111000101) = Octal (133705)

Here I converted binary to Octal easily. Am I right or wrong ?

Niziak said: (Jan 1, 2011)  
Question is stereotype. Convesion to octal is more easy for human but not more common for programmers

Sudhakar said: (Sep 13, 2011)  
Hello Ranjith you are right but binary to hexa-decimal is conversion is easy when comparing octal.

Because it calculation by 4 digits. For the same example

(1011 0111 1100 0101)2 = (B7C5)16.

Rajeshtn said: (Oct 3, 2011)  
I feel this is more of a mathematical question than a programming question. Since this is a 32 bit number, there is no need to convert at all. I feel the question is quite vague where answer could be true depending on the context in which the person who answers perceives the question

Nayak said: (Nov 3, 2011)  
Niziak you follow the two steps first u convert into decimal and then to octal do u think this one is easy.......

Rupali said: (Jul 8, 2012)  
Is this explanation correct "Hexadecimal system is better, because each 4-digit binary represents one Hexadecimal digit. ".

Because, even I can say that each 3-digit binary number represents one octal digit.

I can't understand how the hexadecimal is easy?why octal is hard?

Can anyone can explain it?

Cmsullad said: (Jul 28, 2012)  
In hexadecimal only four letters required to represent, hence it is easy. Note, in octal it is represented with six digits ?

Madhu said: (Aug 29, 2012)  

Sailusha said: (Aug 29, 2012)  
Please tell me how to write 15 table by using bitwise operators?

Monika said: (Nov 7, 2013)  
Why not octal ?

Subhash said: (Jul 24, 2015)  
Ya 3 digit of binary is very easy to convert to octal.

Chetan Patil said: (Dec 14, 2015)  
The conversion of binary 2 hexadecimal is easy.

Ganga said: (Sep 9, 2016)  
Binary number easily converted to decimal. But why not hexadecimal?

Linus said: (Nov 11, 2017)  
There are 16 numbers in 1011011111000101. 16 is evenly divisible by four, but not by three, so hexadecimal is easier than octal.

Praveen said: (Apr 25, 2020)  
Converting into octal is also not difficult because every three digits from LSB(least significant bit) in the binary system will represent 1 digit in the octal system.


It is 133705 in the octal system.


Akash C said: (Aug 21, 2021)  
It's very easy when we convert binary to hexadecimal why because.
If we convert binary (2) to Hexa (16) then we try to make 2's power which is equivalent to 16.
i.e 2^4= 16, here the power is 4 now mare a group of 4 digits and write for corresponding decimal number (for example 10111010 make a group of 4 digits.

Like 1011 = b, 1010= a).

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.