Computer Applications

Total size of array A having 25 elements of char type is …………… .

  1. 25 bytes
  2. 50 bytes
  3. 100 bytes
  4. None of these

Java Arrays

8 Likes

Answer

50 bytes

Reason — The size of char data type is 2 bytes. Since A is an array of char type, the size of each element of the array will be 2 bytes. The size of 25 elements will be 25 X 2 = 50 bytes.

Answered By

6 Likes


Related Questions