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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:07:21+00:00 2026-06-13T09:07:21+00:00

In C and C++, the size of the build-in integer types is implementation dependent.

  • 0

In C and C++, the size of the build-in integer types is implementation dependent. But is there any predefined intended meaning of them such that int should represent the machine word size etc?

  • 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-13T09:07:22+00:00Added an answer on June 13, 2026 at 9:07 am

    Historically, int was supposed to mean the most “natural” type for an
    integer on the machine hardware; obviously, “natural” is somewhat
    subjective, but in the past, it was usually pretty obvious, and there
    weren’t that many integral types available anyway, so makeing int the
    same size as a long or a short was the normal course of things.

    For various reasons, most 64 bit platforms make int 32 bits. One
    could easily argue that this isn’t the most “natural” length, but there
    was a desire that 32 bit integers be the default, and int is clearly
    the default integral type. Whether it is the most natural for the
    architecture or not becomes secondary to whether it is the size wanted
    as a default.

    With regards to word size: historically, this was the most natural, but
    in many ways, it’s not clear what is meant by “word size” on a modern
    machine: the largest size you can do arithmetic on? the size of bus
    transfers to and from memory? etc. Traditionally, “word size” has been
    used to mean both the width of internal registers (when the machine had
    them), or the size of a basic bus transfer. (The 8088 was usually
    referred to as an 8 bit machine, although it had 32 bit registers.) I
    wouldn’t put too much meaning in it today.

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

Sidebar

Related Questions

C99 standard has integer types with bytes size like int64_t. I am using Windows's
I know how to build Dynamically allocated arrays, but not how to grow them.
I've already build a recursive function to get the directory size of a folder
I am following all steps using this link . The build was successful but
I am trying to write a function that converts between Maps with integer keys
I have the following function to convert an integer of arbitrary size to a
I added a code that was published 3 years later than original plugin, but
So, i'm trying to build a program that takes 2 integers. Later it splits
I need a class that is an integer whose value can be changed after
trying to test out move semantics i build a simple class that allocates some

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.