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 8162329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:40:57+00:00 2026-06-06T18:40:57+00:00

I am working on an OS project and I am just wondering how a

  • 0

I am working on an OS project and I am just wondering how a pointer is stored in memory? I understand that a pointer is 4 bytes, so how is the pointer spread amongst the 4 bytes?

My issue is, I am trying to store a pointer to a 4 byte slot of memory. Lets say the pointer is 0x7FFFFFFF. What is stored at each of the 4 bytes?

  • 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-06-06T18:40:59+00:00Added an answer on June 6, 2026 at 6:40 pm

    The way that pointer is stored is same as any other multi-byte values. The 4 bytes are stored according to the endianness of the system. Let’s say the address of the 4 bytes is below:

    Big endian (most significant byte first):

    Address       Byte
    0x1000        0x7F
    0x1001        0xFF
    0x1002        0xFF
    0x1003        0xFF
    

    Small endian (least significant byte first):

    Address       Byte
    0x1000        0xFF
    0x1001        0xFF
    0x1002        0xFF
    0x1003        0x7F
    

    Btw, 4 byte address is 32-bit system. 64-bit system has 8 bytes addresses.

    EDIT:
    To reference each individual part of the pointer, you need to use pointer. 🙂
    Say you have:

    int i = 0;
    int *pi = &i; // say pi == 0x7fffffff
    int **ppi = π // from the above example, int ppi == 0x1000
    

    Simple pointer arithmetic would get you the pointer to each byte.

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

Sidebar

Related Questions

I'm trying to get MSBuild working on a project that has just been moved
So I just finished working the project at http://msdn.microsoft.com/en-us/data/gg685489 . I am trying to
We are working on a new web project that is just loose html/css/js files
I am working on a project for my college course. I was just wondering
I'm just wondering if its possible to have a Vaadin project working under google
Just additional information: this is for a game project I'm working on. I'm trying
I was just wondering about something, I'm working on a project with several other
Hi I'm working on my first sqlite project and I was just wondering if
I'm working on a JavaScript project, and was just wondering why an object instance
Just wondering... Im working on a project and I was wondering if i could

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.