Range of Long type doesn磘 fit
Hi!!!
I am trying to assign the following value to a variable of type long
long A = -140737488355327;
The compiler tells me that such integer number is too large. I can磘 assign it to A.
Sun磗 tutorial tells that long variables can hold a minimum value of
-9,223,372,036,854,775,808. In my case it is not working... Somebody help?
> Yeahhh it worked...
> But why the L in the end?
> Thanxssss
It means long. Without it, it'll be interpreted as an int (which doesn't fit).
Note that Annie's already posted the correct answer, but the buggy forum software eats the trailing L from within code tags (if you quote her reply, you'll see the L again).
> Note that Annie's already posted the correct answer,
> but the buggy forum software eats the trailing
> L from within code tags (if you quote her
> reply, you'll see the L again).
So I see nothing's changes around here. Should I be surprised? :)