About 73 results
Open links in new tab
  1. How many bits or bytes are there in a character? [closed]

    Dec 12, 2018 · 20 There are 8 bits in a byte (normally speaking in Windows). However, if you are dealing with characters, it will depend on the charset/encoding. Unicode character can be 2 or 4 …

  2. binary - Why does a byte only have 0 to 255? - Stack Overflow

    Feb 13, 2011 · Strictly speaking, the term "byte" can actually refer to a unit with other than 256 values. It's just that that's the almost universal size. From Wikipedia: Historically, a byte was the number of …

  3. How many bytes does one Unicode character take?

    As far as I know old ASCII characters took one byte per character. Right. Actually, since ASCII is a 7-bit encoding, it supports 128 codes (95 of which are printable), so uses less than a byte. How many …

  4. binary - How many bits are there in a nibble? - Stack Overflow

    Sep 20, 2016 · A nibble (often, nybble) is the computing term for a four-bit aggregation, or half an octet (an octet being an 8-bit byte).

  5. byte - How many bits is a "word"? - Stack Overflow

    Jan 21, 2015 · If a character is 8 bits, or 1 byte, then a WORD must be at least 2 characters, so 16 bits or 2 bytes. Traditionally, you might think of a word as a varying number of characters, but in a …

  6. How many bits is 1k byte? - Answers

    Nov 10, 2022 · One BYTE is currently defined as 8 BITs. (Binary digITs) 1 B = 8 b (Big "B" is for Bytes and little "b" is for bits.) Some data protocols use a different number of bits to define a character (like ...

  7. c++ - calculate number of bits set in byte - Stack Overflow

    Mar 31, 2012 · 4 For just a single byte value, the fastest way is to store the answer in an 256 byte array that you index with the value. For example, bits_set[] = {0, 1, 1, 2, ...

  8. byte - how long is a memory address typically in bits - Stack Overflow

    29 (For a typical 32-bit processor, as posited in the question) - The processor uses 32 bits to store an address. With 32 bits, you can store 2^32 distinct numbers, ranging from 0 to 2^32 - 1. "Byte …

  9. byte - How many bits are needed to address this much memory?

    Sep 25, 2011 · 1 byte = 8 bits, so since there are 4 bytes and 1 byte = 8 bites Would it be correct to think 4bytes x 8 bites = 32 bits?? being the answer??? No, that's not the answer. If your computer has 64 …

  10. Will a `char` always-always-always have 8 bits? - Stack Overflow

    A byte is not always 8 bits, though, so your second assumption doesn't always hold. That said, >= 99.99% of all systems in existence today have 8-bit characters, so lots of code implicitly assumes 8 …