Hi,
Do i have to add L at the end of the value to declare the value as a long variable?? Because when i gave a huge value to variable without adding L at its end i got compile error. And when i did it ran successfully.
Thanks.
Printable View
Hi,
Do i have to add L at the end of the value to declare the value as a long variable?? Because when i gave a huge value to variable without adding L at its end i got compile error. And when i did it ran successfully.
Thanks.
Without the L the number is by default interpreted as an int literal. The L makes it a long literal.