KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

Total size of array B[10][5] of int type is …………… .

  1. 50 bytes
  2. 15 bytes
  3. 100 bytes
  4. 200 bytes

Java Arrays

6 Likes

Answer

200 bytes

Reason — The size of int data type is 4 bytes. Since B is an array of int type, the size of each element of the array will be 4 bytes. The array has 10 rows and 5 columns, thus total number of elements will be 10 X 5 = 50. The size of 50 elements will be 50 X 4 = 200 bytes.

Answered By

5 Likes


Related Questions