difference between byte and word

This is a discussion on difference between byte and word within the Tech Board forums, part of the Community Boards category; I know a byte is 8 bits and a word is the smallest unit of memory addressable in RAM. What ...

  1. #1
    Registered User
    Join Date
    Apr 2010
    Location
    Vancouver
    Posts
    127

    difference between byte and word

    I know a byte is 8 bits and a word is the smallest unit of memory addressable in RAM. What I don't get is what's the point of having bytes?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,773
    Quote Originally Posted by c_weed
    I know a byte is 8 bits and a word is the smallest unit of memory addressable in RAM. What I don't get is what's the point of having bytes?
    A quick check of the Wikipedia articles on byte and word shows that they discuss this in some detail, including possible corrections of the misconceptions that you may have. Have you read them and other articles online concerning these two terms?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2010
    Location
    Vancouver
    Posts
    127
    "a byte... is the basic addressable element in many computer architectures." -wikipedia
    "word is a term for the natural unit of data used by a particular processor design. A word is basically a fixed sized group of bits that are handled as a unit by the instruction set and/or hardware of the processor." -wikipedia

    These definitions sound pretty similar to me. Is a byte a common size for a word?

  4. #4
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Posts
    2,598
    > A word is basically a fixed sized group of bits that are handled as a unit by the instruction set and/or hardware of the processor.
    (AFAIK) that means the size of a general purpose register(which is generally more than a byte) is a word.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Comparision byte by byte
    By anusha2489 in forum C Programming
    Replies: 12
    Last Post: 05-16-2011, 06:58 AM
  2. reading files byte by byte
    By cpsc in forum C++ Programming
    Replies: 12
    Last Post: 01-07-2011, 02:54 PM
  3. reading text-and-numbers file word by word
    By bored_guy in forum C Programming
    Replies: 22
    Last Post: 10-26-2009, 10:59 PM
  4. Word to byte (or INT to CHAR)
    By Andy_P in forum C Programming
    Replies: 3
    Last Post: 09-30-2005, 07:55 AM
  5. open file, search of word, replace word with another
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 06-05-2002, 01:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21