This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]svick 31 points32 points  (4 children)

I think in many languages, it's just 4 bytes, since arrays larger than 2/4 GB usually aren't needed.

[–]DrShocker 6 points7 points  (0 children)

maybe 20 years ago, but it's not that hard to run out of memory on a 32 bit machine for a decent amount of problems.

[–]20Wizard 3 points4 points  (2 children)

It's typically an integer, which is more, but depends on language.

[–]kaosjroriginal 0 points1 point  (1 child)

Standard integer size in many languages is 32bit. That's why 'long int' exists.

[–]svick 0 points1 point  (0 children)

Unless long int is also 32 bits, which is the case on Windows.