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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:22:28+00:00 2026-05-23T15:22:28+00:00

On any of the ‘major platforms’ (which I’m defining as Windows, Mac and Linux

  • 0

On any of the ‘major platforms’ (which I’m defining as Windows, Mac and Linux for the purpose of this question,) is it conceivable for a validly allocated pointer to be allocated at address 0 in a programs address space (therefore messing up comparisons to NULL?)
Does the standard even allow a compiler/platform to have a valid allocation at address 0?

  • 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-23T15:22:28+00:00Added an answer on May 23, 2026 at 3:22 pm

    The C++ standard allows it, but such a pointer will not compare equal to literal 0 (the NULL pointer constant).

    User-mode applications in the major OSes, however, will never have a valid pointer at 0, or even in the range -65536 to 65535 (to help detect offsets from a NULL pointer).

    For the most part, 0 as a usable address only exists in embedded systems, and very rarely in kernels of PC operating systems. But virtual memory systems reserve it, without any exceptions I’ve ever heard of.

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

Sidebar

Related Questions

Any regex gurus around here? its driving me crazy. Say I have this string:
Any tutorials for this? Code? Instructions would be great! :) thanks! I have an
Any ideas why this wouldn't output anything? I just want to remove /page/* part
Any idea why this function doesn't work properly in Internet Explorer? function days_between(check_in, check_out)
Any idea why I'm getting this error at runtime ? I'm trying to deploy
Any idea why this is happening? I'm setting breakpoints on the method and they
Any portable code that uses bitfields seems to distinguish between little- and big-endian platforms.
Any clue why my Android app is hanging on this code block when I
Any ideas on how i can create this app? 1) i have a page
Any example using the the SystemConfiguration framework or other frameworks ? (similar question Finding

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.