Computer Applications

The number of bits occupied by the value ‘a’ are:

  1. 1 bit
  2. 2 bits
  3. 4 bits
  4. 16 bits

Values & Data Types Java

ICSE 2023

18 Likes

Answer

16 bits

Reason — A char data type occupies 2 bytes in the memory.

1 byte = 8 bits
2 bytes = 8 * 2 = 16 bits

Answered By

9 Likes


Related Questions