Annex D
(normative)
Compatibility features
[depr]
D.2
Deprecated unprefixed octal literal
[depr.oct]
1
#
An
unprefixed-octal-literal
(
[lex.
icon]
) of the form
0
''
o
p
t
octal-digit-sequence
is deprecated
.
[
Note
1
:
Use of an
unprefixed-octal-literal
, except the literal
0
, is deprecated because they are often confused with decimals
.
—
end note
]
[
Example
1
:
int
zero
=
0
;
// OK
int
more_zeroes
=
000
;
// deprecated
int
unprefixed_octal
=
042
;
// deprecated
int
prefixed_octal
=
0o42
;
// OK
—
end example
]