Question:

How much memory is required to store the elements of the array defined as float items[4][5][6];

Show Hint

To calculate memory usage of an array, multiply the number of elements by the size of each element.
Updated On: May 3, 2025
  • 240 bytes
  • 120 bytes
  • 480 bytes
  • 920 bytes
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

The total number of elements in the array is \( 4 \times 5 \times 6 = 120 \). Each element of the array is of type float, which takes 4 bytes.
Therefore, the total memory required is: \[ 120 \times 4 = 480 \text{ bytes}. \]
Thus, the correct answer is \( 480 \text{ bytes} \).
Was this answer helpful?
0
0

Top Questions on Data Structures

View More Questions