Cpp-Primer
Cpp-Primer copied to clipboard
ex2.5 notation vs type?
Hi,
In the answers, you suggest that 012 is an octal type and 0xC is a hexadecimal
I was wondering if you have considered that octal and hexadecimal are just notations instead of types? I would rather say that these are unsigned int.
What do you think?
https://en.cppreference.com/w/cpp/language/integer_literal