Multiple choice

If we declare integer array with dimensions 10, 5; how many bytes will be allocated for it in memory for a 32-bit machine?

  1. 100 bytes

  2. 200 bytes

  3. 300 bytes

  4. 400 bytes

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In a 32-bit machine, integer will occupy 4 bytes. Therefore, answer should be 10*5*4 = 200 bytes. Hence, it is the correct answer.