-
-
Notifications
You must be signed in to change notification settings - Fork 9
Integer Literal
IsaacShelton edited this page Mar 21, 2022
·
1 revision
Integer literals are integer values of an unspecified type.
Example 1
1000
Example 2
-8476
Example 3
0
The type of the integer literal is determined by the context around the literal. If the value is used alongside a value of a known integer type, then the integer literal will become that type, otherwise it will collapse to be of type long
by default.