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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:47:37+00:00 2026-06-02T05:47:37+00:00

I came across a code like below: #define SOME_VALUE 0xFEDCBA9876543210ULL This SOME_VALUE is assigned

  • 0

I came across a code like below:

#define SOME_VALUE 0xFEDCBA9876543210ULL

This SOME_VALUE is assigned to some unsigned long long later.

Questions:

  1. Is there a need to have postfix like ULL in this case ?
  2. What are the situation we need to specify the type of integer used ?
  3. Do C and C++ behave differently in this case ?
  • 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-02T05:47:39+00:00Added an answer on June 2, 2026 at 5:47 am

    In C, a hexadecimal literal gets the first type of int, unsigned int, long, unsigned long, long long or unsigned long long that can represent its value if it has no suffix. I wouldn’t be surprised if C++ has the same rules.

    You would need a suffix if you want to give a literal a larger type than it would have by default or if you want to force its signedness, consider for example

    1 << 43;
    

    Without suffix, that is (almost certainly) undefined behaviour, but 1LL << 43; for example would be fine.

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

Sidebar

Related Questions

Context I came across some code, like this: if( Some_Condition ) throw 0; I
I came across some legacy code that contains a function like this: LPCTSTR returnString()
I came across some tests that included code like this: if (this != null)
I recently came across some code like this: parent && parent.removeChild(this); Which takes the
I came across some javascript code like this: selector = $this.attr('href') selector = selector
I came across some code containing the following: struct ABC { unsigned long array[MAX];
I came across some code like this: public string IsAdmin() { string style =
A colleague came across some code that looked like this and couldn't understand how
I came across a line of code which had something like the below #define
If you came across some C# code like this with nested using statements/resources: using

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.