Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 279367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:01:35+00:00 2026-05-12T05:01:35+00:00

Problem: I cannot understand the number 256 (2^8) in the extract of the IBM

  • 0

Problem: I cannot understand the number 256 (2^8) in the extract of the IBM article:

On the other hand, if it’s a
big-endian system, the high byte is 1
and the value of x is 256.

Assume each element in an array consumes 4 bites, then the processor should read somehow: 1000 0000. If it is a big endian, it is 0001 0000 because endianness does not affect bits inside bytes. [2] Contradiction to the 256 in the article!?

Question: Why is the number 256_dec (=1000 0000_bin) and not 32_dec (=0001 0000_bin)?

[2] Endian issues do not affect sequences that have single bytes, because “byte” is considered an atomic unit from a storage point of view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:01:35+00:00Added an answer on May 12, 2026 at 5:01 am

    Because a byte is 8 bits, not 4. The 9th least significant bit in an unsigned int will have value 2^(9-1)=256. (the least significant has value 2^(1-1)=1).

    From the IBM article:

    unsigned char endian[2] = {1, 0};
    short x;
    
    x = *(short *) endian;
    

    They’re correct; the value is (short)256 on big-endian, or (short)1 on little-endian.

    Writing out the bits, it’s an array of {00000001_{base2}, 00000000_{base2}}. Big endian would interpret that bit array read left to right; little endian would swap the two bytes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got a strange problem about in_array recently which I cannot understand. e.g.
I simply cannot understand what is happening here. The problem is important for my
This is the problem described in Programming pearls . I can not understand binary
How can I solve this problem Cannot Create Forms. No MDI forms are currently
It is known that the halting problem cannot have a definite solution, one that
I came across a problem I cannot solve on my own concerning the downloadable
I have a very simple problem but cannot find a nice solution. I have
I know this has probably been asked before but for my problem I cannot
[Updated, sorry about the change but now to the real problem] I cannot include
I am facing the problem that I cannot properly map my foreign key table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.