this question has answer here:
- the literal xyz of type int out of range 3 answers
i have use quite big number - 600851475143; know, have use long data type when try initialize like: long number = 600851475143
error:
the literal 600851475143 of type int out of range.
it seems don't know how use long data type correctly.
long number = 600851475143l
use "l" make long type
Comments
Post a Comment