Computer science (how many bits are set) – can someone help me?

How many bits are set in the value 0x5C?

With explanation, please. Thanks in advance 🙂

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
7 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
GuteFrageUse795
1 year ago

Binary 1011100

4

0x5C

0x stands for hexadecimal

5 remains

c = 12

5 * 16 + 12

GuteFrageUse795
1 year ago
Reply to  User260700

You can also easily recognize that in hexadecimal numbers you always need 1 Hex value = 4 bits. So you can always count the number of places 4*Number of Hex characters

Hansikanzie
1 year ago
Reply to  User260700

Yeah, every one is a bit.

Hansikanzie
1 year ago

What is the 0x for?🤔

Kwalliteht
1 year ago
Reply to  Hansikanzie

To indicate that the hexadecimal system is used.

NorbertWillhelm
1 year ago

0x5C consists of two hexadecimal digits, thus has 2 hexadecimal digits*4 bit/hexadecimal digit=8 bit.

By the way, 8 bits are the same as 1 byte.