I am reading the Google Go tutorial and saw this in the constants section:
There are no constants like 0LL or 0x0UL
I tried to d
LL
designates a literal as a long long
and UL
designates one as unsigned long
and 0x0
is hexadecimal for 0
. So 0LL
and 0x0UL
are an equivalent number but different datatypes; the former is a long long
and the latter is an unsigned long
.
There are many of these specifiers:
1F // float
1L // long
1ull // unsigned long long
1.0 // double