A
Alan Krueger
Victor said:Another advice (in addition to my post): typos are programmer's worst
enemies. It's quite possible to make a mistake in such a constant even
if you copy and paste it from a calculator or something. I recommend
using 1024*1024*1024 instead. The compiler will calculate it for you.
Besides, it's readable a bit better than 1034234582 (oops.. I guess
I mistyped)
Er, wouldn't it be better to use something more suitable to powers of
two, like hexadecimal?
1024 = 1024 = 0x400
1024*1024 = 1048576 = 0x100000
1024*1024*1024 = 1073741824 = 0x40000000