The literal 09 of type int is out of range, what does it mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The literal 09 of type int is out of range, what does it mean?

26th Mar 2022, 1:54 AM
Purpy 🌟
Purpy 🌟 - avatar
2 Answers
+ 1
Prefix 0 or number starts with 0 appended is a octal type number. And octal number contains digits 0-7 only. So having 9 is invalid octal number Hope it helps.
26th Mar 2022, 11:04 AM
Jayakrishna 🇮🇳
0
Thank you!
31st Mar 2022, 9:22 AM
Purpy 🌟
Purpy 🌟 - avatar