Computer Applications

The array char arr[8] occupies :

  1. 32
  2. 8
  3. 16
  4. 24

Java Arrays

5 Likes

Answer

16

Reason — char datatype requires 2 bytes of memory. 8 char type elements will require 2 x 8 = 16 bytes of memory.

Answered By

2 Likes


Related Questions