Cpp-Primer icon indicating copy to clipboard operation
Cpp-Primer copied to clipboard

ex2.5 notation vs type?

Open lthiet opened this issue 4 years ago • 1 comments

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?

lthiet avatar Apr 09 '22 14:04 lthiet

https://en.cppreference.com/w/cpp/language/integer_literal

pezy avatar Apr 10 '22 02:04 pezy