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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:47:39+00:00 2026-06-14T11:47:39+00:00

In my assignment, it says Do not add long int or long long private

  • 0

In my assignment, it says

Do not add long int or long long private members to accomplish this as there is no guarantee that either can actually store larger numbers than an int.

I know that int has a maximum of 231-1 and long long has a maximum of 263-1. Can someone give me an example to me why the given sentence is true?

  • 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-14T11:47:40+00:00Added an answer on June 14, 2026 at 11:47 am

    It means exactly what it says. There’s no guarantee that a long long can store more numbers than an int. It’s at least as big, but it can be the same.

    I know that int has a maximum of 2^31-1 and long long has a maximum of 2^63-1

    This can be true for some platform, with some compiler, but it’s not always the same. C++ doesn’t guarantee either.

    3.9.1 Fundamental types [basic.fundamental]

    2) There are five standard signed integer types : “signed char”,
    “short int”, “int”, “long int”, and “long long int”. In this list,
    each type provides at least as much storage as those preceding it in
    the list. […] (emphasis mine)

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

Sidebar

Related Questions

This D specification table says that assignment overloading is only possible for structs, not
This is an assignment that I've been given, it says that if an hash-set
I have to do an assignment for my class and it says not to
My understanding of C# says (thanks to Jeff Richter & Jon Skeet) that assignment
My assignment says to throw a try and catch for this: If the user
This is a homework assignment, I have to write a program that reads a
The documentation for PL/pgSQL says, that declaration and assignment to variables is done with
IntelliJ highlights the 'foo' variable in gray, and says assignment is not used. What
I am currently doing a programming assignment and it says that we should store
The assignment in the Big Nerd Ranch Guide says: Silver Challenge: Another initializer 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.