Alex Rivera | Logout

Difference between unsigned and unsigned int in C++

Asked 2011-10-21T10:13:16.570
44

What is the difference between unsigned and unsigned int?

This question was already answered for C (there is no difference):

Difference between unsigned and unsigned int in C

I am interested in knowing whether there is any practical difference in C++. Are they the same type?

Edit
Report

1 Answer

61

They are the same type, as in C. No differences at all.

Of course, unsigned can be used as a qualifier for other integral types. But by default, unsigned is the same as unsigned int.

answered 2011-10-21T10:14:55.103

Your Answer