What is the difference between unsigned and unsigned int?
unsigned
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?
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.
1.4m articles
1.4m replys
5 comments
57.0k users