the range of a unsigned 32-bit integer?

is the range of a unsigned 32-bit integer from 0 to 2^31-1 ?
TrouAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
IainHereConnect With a Mentor Commented:
2^32-1 if unsigned
0
 
jhanceCommented:
Isn't this one of those implementation defined constants?  
0
 
FearumCommented:
It's 0..4294967295
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.