Unsigned is defined as unsigned int, am I right?
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.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Is there any default type anymore?
I hope it's not anything silly
"The Internet treats censorship as damage and routes around it." - John Gilmore
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.Originally Posted by Mario F.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law