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

  • SEARCH
  • Home
  • 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 7914837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:15:09+00:00 2026-06-03T14:15:09+00:00

Based on corrections of annotations to the standard . 3.14 An object is either

  • 0

Based on corrections of annotations to the standard.

3.14 An object is either a variable or a constant that resides at a physical memory address.

  • In C, a constant does not reside in memory, (except for some string literals) and so is not an object.

It makes sense to me that a const will not have an actual memory location (except possibly for string literals) and that it depends on the compiler, which will most likely replace all references to it with the literal value. That being said, how is the following possible?

const int * foo;

This declares a pointer to a const int. However, constants don’t have an address, so what does this really mean? You can’t have a pointer to a literal value that only exists at compile time.

  • 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-03T14:15:11+00:00Added an answer on June 3, 2026 at 2:15 pm

    A const variable is not a constant. A constant is a literal value or an expression composed of literal values, like 3+5/2.4. Such constants indeed don’t reside in memory, the compiler inserts the literal at the appropriate places.

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

Sidebar

Related Questions

based on .designer.cs, i infer that the menu's arrangement is based on the order
I have a simple web form that feeds into Infusionsoft. Not my call. I
I have four foreach loops that iterate through the collections and based on a
I recently created a turn-based game server that can accept 10s of thousands of
I have a boost::asio based server which works fine, except that I'm trying to
I have a Collection object (based on System.Collections.CollectionBase) but to access the values of
I'm looking to write a small client-server-based text game that handles multiple client connections
Does WPF use the installed color profile in windows for correcting the colors that
I am attempting to replace the Canvas-based rendering system that I already have with
I have heard that excel-based ODBC connections can cause high server load (repeatedly warned

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.