Hi,
I have a general memory allocation question, this topic came up at work and everyone has different answers.
If I have an integer array of 3 dimensions, with each dimension having 1000 elements, on a 32 bit system, how many bytes does it take to create this array?
I'm thinking it would be 1000 * 1000 * 1000, (1,000,000,000 spaces? ...this can't be right! 4 bits for an integer would be like 4 billion bytes!)
Just kinda curious.
I have a general memory allocation question, this topic came up at work and everyone has different answers.
If I have an integer array of 3 dimensions, with each dimension having 1000 elements, on a 32 bit system, how many bytes does it take to create this array?
I'm thinking it would be 1000 * 1000 * 1000, (1,000,000,000 spaces? ...this can't be right! 4 bits for an integer would be like 4 billion bytes!)
Just kinda curious.