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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:22:15+00:00 2026-05-16T23:22:15+00:00

Came across this one while browsing the response to another question on SO (

  • 0

Came across this one while browsing the response to another question on SO (References Vs Variable Gets).
My question is that for all 64bit environments is it guaranteed that a reference to a variable will be of 64 bits even if the original had a lesser size? As in char references in 64bit environment would be >sizeof(char)? Is there any section in the standard which specifies this explicitly?

EDIT: For more clarity —
char c1 = ‘a’;
char& c2 = c1;
My question is sizeof(c2) > sizeof(c1) in 64bit machines?

  • 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-16T23:22:15+00:00Added an answer on May 16, 2026 at 11:22 pm

    The Standard (ISO C++-03) says the following thing about references

    It is unspecified whether or not a reference requires storage (3.7).

    Please someone correct me if I am wrong or if I have not understood his question correctly.

    EDIT:

    My question is sizeof(c2) > sizeof(c1) in 64bit machines?

    No, as @Chubsdad noticed sizeof(c2) = sizeof (c1), the relevant quote from the Standard is

    When applied to a reference or a reference type, the result is the size of the referenced type. (ISO C++ $5.3.3/2)

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

Sidebar

Related Questions

I came across a few articles like this one , which suggest that some
I've searched for an answer to this question and came across hide scrollbar while
While answering this question I came across an interesting difference in the overload resolution
A while ago I came across this answer that introduced me to the obscure
While researching the issue of JSON vs XML , I came across this question
I came across this while debugging some unit tests that compared a returned single
While working on jstree I came across this line of code- <!-- one of
I came across this interesting situation while answering this question . Try this piece
I came across this situation while migrating our DB from Foxpro to SQL. Below
I came across this in the book: wscanf(L%lf, &variable); where the first parameter is

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.