1) It's not an obvious visual sign as say 0.1f or even the dot itself.
2) It destroys the ability to pad 0s before a number as you can do anywhere else (on your calculator, etc).
Printable View
1) It's not an obvious visual sign as say 0.1f or even the dot itself.
2) It destroys the ability to pad 0s before a number as you can do anywhere else (on your calculator, etc).
x << 2 is the same as this:
#define lol 2
x <<= 2
?
No, they are different.
x <<= 2 is the same as x = x << 2
More consistent would be say, a 0t prefix, since 0x is for hex. But alas, this is not likely to be changed.Quote:
they could do it like o123 instead of the actual 0123. The 'o' meaning 'octal base'