[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 659
  • Last Modified:

the range of a unsigned 32-bit integer?

is the range of a unsigned 32-bit integer from 0 to 2^31-1 ?
0
Trou
Asked:
Trou
1 Solution
 
IainHereCommented:
2^32-1 if unsigned
0
 
jhanceCommented:
Isn't this one of those implementation defined constants?  
0
 
FearumCommented:
It's 0..4294967295
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
FearumCommented:
So no, it is not.

The range is 2^32-1.
0
 
ComTechCommented:
Fearum, you have been here long enough to know not to block or lock questions.   You may be right, but that is up to the User to decide, if he/she  uses you comment as an answer, then good for you.

I must reject the proposed answer and return it to the active question listin.

Thanks,
ComTech
Community Suppport
0
 
jhanceCommented:
Even it the answer Fearum gave is right, IT'S EXACTLY WHAT IanHere posted several hours ago.
0
 
AssafLavieCommented:
yes.

To find out programmatically you can use:

#include <limits>
main
{
cout << "limit of unisgned int" << std::numeric_limits<unsigned int>::max();
};
0
 
TrouAuthor Commented:
I found it out from one book.But in my opinion  the range  is 0-2^32-1,or 0-0ffffffffh.

0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now