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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:02:56+00:00 2026-06-06T17:02:56+00:00

How to prove const char *p is same as char const *p through code

  • 0

How to prove const char *p is same as char const *p through code or memory space model or any other things.
For example, I defined:

const char *p;
char const *p;

Now from where I can know they take same effect?

  • 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-06T17:02:57+00:00Added an answer on June 6, 2026 at 5:02 pm

    It is a matter of style more than anything else.

    As for the proof part: They are equivalent because the language rules ensure that both syntax have the same semantics. As such, implementations are required to make sure that they have the same effect. You may want to read Stroustrup’s FAQ item: Should I put “const” before or after the type? (though note that C and C++ are different languages, the latter borrowing heavily from the former and to this day does try to maintain compatibility.)

    The const keyword is an exception in the sense that in this case the C standards committee borrowed something from C++ and retrofitted it to C.

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

Sidebar

Related Questions

Building simple code (example is below) returns error on eclipse, while g++ from commandline
For example uninitialized_copy is defined in the standard as: Effects: for (; first !=
Trying to prove correctness of a insertion function of elements into a bst I
I'm trying to prove the statement ~(a->~b) => a in a Hilbert style system.
I'd like to prove that a GUID is not unique in a simple test
How can I quickly prove that the following class is not thread-safe (as it
I'm trying to prove that changing document.domain can be used only for cross scripting
How to prove this: 4 n = O(8 n ) 8 n = O(4
We can prove that set of all one argument functions cannot be countable using
Simple case of trying to prove I can convert NSString to NSDate . Create

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.