Unsigned is defined as unsigned int, am I right?
Printable View
Unsigned is defined as unsigned int, am I right?
No. Not anymore. int is no longer the default type. You should name your types.
The contrary is true though. short, int and long are signed by default.
Is there any default type anymore?
I hope it's not anything silly :)
No type at all is no longer substituted by int, but a simple unsigned is still the same as unsigned int. See C++98, 7.1.5(2) and 7.1.5.2(1), the latter of which lists all valid combinations of simple type specifiers.Quote:
Originally Posted by Mario F.